From: Houa Yang Date: Fri, 21 Feb 2020 21:59:59 +0000 (-0600) Subject: Add AWS credentials config file X-Git-Tag: v0.53.0~11^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=49eefe0c81cdb13784f4636836f79b3016e40529;p=releng%2Fglobal-jjb.git 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 --- 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: