Skip to content

Commit

Permalink
Move data prepper jenkins env vars to credentials (#2320)
Browse files Browse the repository at this point in the history
* Move data prepper jenkins env vars to credentials

Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya authored Jul 11, 2022
1 parent f6cab52 commit 5161c14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ pipeline {
string(name: 'VERSION', description: 'The version of Data Prepper', trim: true)
string(name: 'DATA_PREPPER_BUILD_NUMBER', description: 'The build number of the Data Prepper build from GitHub to release.', trim: true)
}
environment {
DATA_PREPPER_ARTIFACT_STAGING_SITE = credentials('jenkins-data-prepper-artifact-staging-site')
DATA_PREPPER_STAGING_CONTAINER_REPOSITORY = credentials('jenkins-data-prepper-staging-container-repository')
ARTIFACT_PROMOTION_ROLE_NAME = credentials('jenkins-artifact-promotion-role')
AWS_ACCOUNT_ARTIFACT = credentials('jenkins-aws-production-account')
ARTIFACT_PRODUCTION_BUCKET_NAME = credentials('jenkins-artifact-production-bucket-name')
}
stages {
stage('Promote Archives') {
agent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
release-data-prepper-all-artifacts.legacySCM(groovy.lang.Closure)
release-data-prepper-all-artifacts.library({identifier=jenkins@20211123, retriever=null})
release-data-prepper-all-artifacts.pipeline(groovy.lang.Closure)
release-data-prepper-all-artifacts.credentials(jenkins-data-prepper-artifact-staging-site)
release-data-prepper-all-artifacts.credentials(jenkins-data-prepper-staging-container-repository)
release-data-prepper-all-artifacts.credentials(jenkins-artifact-promotion-role)
release-data-prepper-all-artifacts.credentials(jenkins-aws-production-account)
release-data-prepper-all-artifacts.credentials(jenkins-artifact-production-bucket-name)
release-data-prepper-all-artifacts.timeout({time=1, unit=HOURS})
release-data-prepper-all-artifacts.echo(Executing on agent [label:none])
release-data-prepper-all-artifacts.stage(Download Archives, groovy.lang.Closure)
Expand Down

0 comments on commit 5161c14

Please sign in to comment.