Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Expand Up @@ -49,7 +56,7 @@ pipeline {
script {
withAWS(role: "${ARTIFACT_PROMOTION_ROLE_NAME}", roleAccount: "${AWS_ACCOUNT_ARTIFACT}", duration: 900, roleSessionName: 'jenkins-session') {
s3Upload(file: 'archive/', bucket: "${ARTIFACT_PRODUCTION_BUCKET_NAME}", path: "data-prepper/${VERSION}/")
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were these braces pushed back?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be IDE formatting issue. Fixed it

}
}
}
Expand Down Expand Up @@ -128,7 +135,7 @@ pipeline {
checksums = ["", ".md5", ".sha1", ".sha256", ".sha512"]

downloadArtifacts()
}
}
}
}
stage('Sign Maven Artifacts') {
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