Skip to content

Commit

Permalink
Jenkinsfile: check KOLA AWS cred before Kola:AWS stage
Browse files Browse the repository at this point in the history
This makes sure the config file exists before kicking off
the build that will run kola AWS tests.
  • Loading branch information
dustymabe committed Sep 17, 2019
1 parent 50e4e6e commit 42188bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ podTemplate(cloud: 'openshift', label: 'coreos-assembler', yaml: pod, defaultCon
}

// Now that we have an AMI go ahead and kick off some tests
if (!params.MINIMAL && s3_stream_dir) {
if (!params.MINIMAL && s3_stream_dir &&
utils.path_exists("\${AWS_FCOS_KOLA_BOT_CONFIG}")) {
stage('Kola:AWS') {
// use jnlp container in our pod, which has `oc` in it already
container('jnlp') {
Expand Down

0 comments on commit 42188bf

Please sign in to comment.