Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POC] Universal Release Prototype for OpenSearch-Build #13

Closed
wants to merge 21 commits into from
Closed
Changes from all 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
39 changes: 39 additions & 0 deletions vars/standardReleasePipeline.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/** A standard release pipeline for OpenSearch projects */

void call(Map args = [:], Closure body) {
pipeline {
agent any
// Note; testing this on custom jenkins instance that doesn't
// have docker installed
// {
// docker {
// label 'AL2-X64'
// image args.overrideDockerImage ?: 'alpine:latest'
// alwaysPull true
// }
// }
options {
timeout(time: 1, unit: 'HOURS')
}
stages{
stage("Release") {
steps {
script {
body()
}
}
}
}
post {
always {
script {
postCleanup()
// Update to also do docker cleanup too
if (args?.cleanup instanceof Closure) {
args.cleanup()
}
}
}
}
}
}