From b9bd4a50ffd49aa2d78e5866ffcc45fef6c4e3e8 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 19 Jun 2017 16:06:04 -0700 Subject: [PATCH] Make the jenkinsfile able to test both channels Signed-off-by: Eli Uriegas --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a38a51e..29d6b5a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }