Skip to content

Commit

Permalink
Merge pull request #3 from seemethere/make_jenkinsfile_reflective
Browse files Browse the repository at this point in the history
Make the jenkinsfile able to test both channels
  • Loading branch information
seemethere authored Jun 19, 2017
2 parents 86f3d56 + b9bd4a5 commit f336890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def genVerifyJob(String t) {
stage("${t}") {
wrappedNode(label: 'aufs', cleanWorkspace: true) {
checkout scm
sh("make clean ${t}.log")
channel = 'test'
if ("${env.JOB_NAME}".endsWith('get.docker.com')) {
channel='edge'
}
sh("make CHANNEL_TO_TEST=${channel} clean ${t}.log")
archiveArtifacts '*.log'
}
}
Expand Down

0 comments on commit f336890

Please sign in to comment.