Fix aws credential file provider conditional 94/63594/3
authorHoua Yang <hyang@contractor.linuxfoundation.org>
Fri, 3 Apr 2020 17:04:16 +0000 (12:04 -0500)
committerHoua Yang <hyang@contractor.linuxfoundation.org>
Fri, 3 Apr 2020 17:23:53 +0000 (12:23 -0500)
Add "on-evaluation-failure: dont-run" to conditional, so that if the
global env variable is not set, the job will not fail.

Issue-Id: RELENG-2749
Signed-off-by: Houa Yang <hyang@contractor.linuxfoundation.org>
Change-Id: I3a7d992bfd93853ffe910713c00380852868f20e

jjb/lf-macros.yaml
releasenotes/notes/fix-aws-credential-file-provider-conditional-a2e8260058e46023.yaml [new file with mode: 0644]

index 94847dc..87c80a0 100644 (file)
@@ -74,6 +74,7 @@
           condition-kind: regex-match
           regex: "^.*logs-s3.*"
           label: $S3_BUCKET
+          on-evaluation-failure: dont-run
           steps:
             - config-file-provider:
                 files:
diff --git a/releasenotes/notes/fix-aws-credential-file-provider-conditional-a2e8260058e46023.yaml b/releasenotes/notes/fix-aws-credential-file-provider-conditional-a2e8260058e46023.yaml
new file mode 100644 (file)
index 0000000..0e38635
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Fix issue where job fails if the global variable S3_BUCKET is not set.
+    Set conditional parameter "on-evaluation-failure" to "dont-run".