Skip to content

Commit 425e450

Browse files
committed
Add a libfabric artifact copying selector
libfabric-artifacts-selector: lastBuild() Skip-PR-comments: true Signed-off-by: Brian J. Murrell <[email protected]>
1 parent 8aeb7e5 commit 425e450

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Jenkinsfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ String test_branch(String target) {
8080
'-' + target.replaceAll('/', '-')
8181
}
8282

83+
def artifacts_selector() {
84+
String pragma_val = cachedCommitPragma('libfabric-artifacts-selector', null)
85+
86+
if (pragma_val) {
87+
return specific(pragma_val)
88+
}
89+
90+
return lastSuccessful()
91+
}
92+
8393
/* groovylint-disable-next-line CompileStatic */
8494
pipeline {
8595
agent { label 'lightweight' }
@@ -222,6 +232,7 @@ pipeline {
222232
steps {
223233
// Populate an artifact directory
224234
copyArtifacts projectName: '/daos-stack/libfabric/master',
235+
selector: artifacts_selector(),
225236
filter: 'artifacts/el8/**',
226237
target: 'artifact'
227238
publishToRepository(

0 commit comments

Comments
 (0)