From 49eefe0c81cdb13784f4636836f79b3016e40529 Mon Sep 17 00:00:00 2001 From: Houa Yang Date: Fri, 21 Feb 2020 15:59:59 -0600 Subject: [PATCH] Add AWS credentials config file Add new jenkins-s3-log-ship config file provider utilizing a conditional step. This is needed to be able to use new lftools deploy s3 api call to upload logs to AWS S3. Issue-Id: RELENG-2749 Signed-off-by: Houa Yang Change-Id: I2171c4f5a8a18259feca265b628cb7288a18c54f --- jjb/lf-macros.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index 8961184f..94847dcf 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -70,6 +70,15 @@ files: - file-id: "jenkins-log-archives-settings" variable: "SETTINGS_FILE" + - conditional-step: + condition-kind: regex-match + regex: "^.*logs-s3.*" + label: $S3_BUCKET + steps: + - config-file-provider: + files: + - file-id: "jenkins-s3-log-ship" + target: $HOME/.aws/credentials - lf-infra-create-netrc: server-id: logs - shell: !include-raw: -- 2.16.6