Skip to content

Commit 683b509

Browse files
committed
Change stashing mechanism
Signed-off-by: Travis F. Collins <[email protected]>
1 parent c2f1336 commit 683b509

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Jenkinsfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
flags = gitParseFlags()
44

5-
dockerConfig = getDockerConfig(['MATLAB','Vivado'], matlabHSPro=false)
5+
dockerConfig = getDockerConfig(['MATLAB','Vivado','Internal'], matlabHSPro=false)
66
dockerConfig.add("-e MLRELEASE=R2023b")
77
dockerHost = 'docker'
88

@@ -32,7 +32,7 @@ stage("Build Toolbox") {
3232
}
3333
}
3434
if (branchName == 'hdl_2022_r2') {
35-
stash includes: '**', name: 'builtSources', useDefaultExcludes: false
35+
local_stash('builtSources')
3636
archiveArtifacts artifacts: 'hdl/*', followSymlinks: false, allowEmptyArchive: true
3737
}
3838
}
@@ -55,7 +55,7 @@ cstage("HDL Tests", "", flags) {
5555
branchName ->
5656
withEnv(['BOARD='+branchName]) {
5757
cstage("Source", branchName, flags) {
58-
unstash "builtSources"
58+
local_unstash('builtSources')
5959
sh 'make -C ./CI/scripts test'
6060
junit testResults: 'test/*.xml', allowEmptyResults: true
6161
archiveArtifacts artifacts: 'test/logs/*', followSymlinks: false, allowEmptyArchive: true
@@ -69,7 +69,7 @@ cstage("HDL Tests", "", flags) {
6969
}
7070
*/
7171
cstage("Installer", branchName, flags) {
72-
unstash "builtSources"
72+
local_unstash('builtSources')
7373
sh 'rm -rf hdl'
7474
sh 'make -C ./CI/scripts test_installer'
7575
junit testResults: 'test/*.xml', allowEmptyResults: true
@@ -96,7 +96,7 @@ for (int i=0; i < demoNames.size(); i++) {
9696
stage(demo) {
9797
echo "Node: ${env.NODE_NAME}"
9898
echo "Demo: ${env.DEMO}"
99-
unstash "builtSources"
99+
local_unstash('builtSources')
100100
sh 'make -C ./CI/scripts test_targeting_demos'
101101
junit testResults: 'test/*.xml', allowEmptyResults: true
102102
archiveArtifacts artifacts: 'test/*', followSymlinks: false, allowEmptyArchive: true
@@ -117,7 +117,7 @@ parallel deployments
117117
node('baremetal') {
118118
stage("NonHW Tests") {
119119
stage("NonHW") {
120-
unstash "builtSources"
120+
local_unstash('builtSources')
121121
sh 'make -C ./CI/scripts run_NonHWTests'
122122
}
123123
}
@@ -132,7 +132,7 @@ cstage("Build Deployable Apps", "", flags) {
132132
branchName ->
133133
withEnv(['APP='+branchName]) {
134134
cstage("Build DApps", branchName, flags) {
135-
unstash "builtSources"
135+
local_unstash('builtSources')
136136
sh 'make -C ./CI/scripts ${APP}'
137137
archiveArtifacts artifacts: 'trx_examples/streaming/LTE_PA_App/LTEPAinstaller/*.exe', followSymlinks: false, allowEmptyArchive: true
138138
archiveArtifacts artifacts: 'trx_examples/streaming/LTE_PA_App/LTEPAinstaller/*.install', followSymlinks: false, allowEmptyArchive: true
@@ -149,7 +149,7 @@ cstage("Hardware Streaming Tests", "", flags) {
149149
dockerParallelBuild(classNames, dockerHost, dockerConfig) {
150150
branchName ->
151151
withEnv(['HW='+branchName]) {
152-
unstash "builtSources"
152+
local_unstash("builtSources")
153153
sh 'echo ${HW}'
154154
// sh 'make -C ./CI/scripts test_streaming'
155155
}
@@ -160,7 +160,7 @@ cstage("Hardware Streaming Tests", "", flags) {
160160

161161
node('baremetal || lab_b5') {
162162
cstage('Deploy Development', "", flags) {
163-
unstash "builtSources"
163+
local_unstash("builtSources")
164164
uploadArtifactory('TransceiverToolbox','*.mltbx')
165165
}
166166
}

0 commit comments

Comments
 (0)