Make the jenkinsfile able to test both channels

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
This commit is contained in:
Eli Uriegas committed 2017-06-19 16:06:04 -07:00
1 parent 86f3d56754
commit b9bd4a50ff
1 file changed
+5 -1
Vendored
+5 -1
View File
@@ -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'
}
}