Skip to content

Commit 4dc72c7

Browse files
committed
Added portal deploy stage
1 parent b68ddf8 commit 4dc72c7

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.citd/Jenkinsfilek8s

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,34 @@ pipeline {
161161
}
162162
}
163163
}
164+
165+
//Deploying the Github content to portal
166+
stage('Portal-Deploy') {
167+
when {
168+
allOf {
169+
not { changeRequest() }
170+
anyOf {branch 'master';}
171+
}
172+
}
173+
steps {
174+
script {
175+
def jsonObj = readJsonObject();
176+
def version = jsonObj.content.version
177+
def project = jsonObj.content.projectName
178+
179+
String[] splitPreTag = "${env.GITHUB_URL}".split("/")
180+
def gitHubOrg = (splitPreTag[splitPreTag.size() - 1])
181+
182+
def cmdArgs = "'{\"repoOwnerName\":\"$gitHubOrg\",\"repoName\":\"$project\",\"tagName\":\"$version\"}'"
183+
cmdArgs = cmdArgs.replaceAll("\"","\\\\\"")
184+
185+
execute("git clone https://bitbucket.microchip.com/scm/portal/bundles.git")
186+
execute("cd bundles && chmod 755 ./portal-client-cli-linux")
187+
execute("git clone https://bitbucket.microchip.com/scm/citd/tool-portal-client-launcher.git")
188+
execute("cd tool-portal-client-launcher && node portalLauncher.js -app=../bundles/portal-client-cli-linux -cmd=\"uploadGitHub ${cmdArgs}\"")
189+
}
190+
}
191+
}
164192

165193
}
166194

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<div id="readme" class="Box-body readme blob js-code-block-container">
2-
<article class="markdown-body entry-content p-3 p-md-6" itemprop="This needs to locked down and 'never' changed"><p><a href="https://www.microchip.com" rel="nofollow"><img src="images/microchip.jpg" alt="MCHP" width="300";"></a></p>
3-
1+
![image](images/microchip.jpg)
2+
43
## PIC24F Hello World UART
54

65
## Summary

images/microchip.jpg

-30.5 KB
Loading

0 commit comments

Comments
 (0)