mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
Bump libcompose and its dependencies
This commit is contained in:
33
vendor/github.com/docker/libcompose/Jenkinsfile
generated
vendored
Normal file
33
vendor/github.com/docker/libcompose/Jenkinsfile
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
wrappedNode(label: 'linux && x86_64') {
|
||||
deleteDir()
|
||||
checkout scm
|
||||
def image
|
||||
try {
|
||||
stage "build image"
|
||||
image = docker.build("dockerbuildbot/libcompose:${gitCommit()}")
|
||||
|
||||
stage "validate"
|
||||
makeTask(image, "validate")
|
||||
|
||||
stage "test"
|
||||
makeTask(image, "test", ["TESTVERBOSE=1", "DAEMON_VERSION=all"])
|
||||
|
||||
stage "build"
|
||||
makeTask(image, "cross-binary")
|
||||
} finally {
|
||||
try { archive "bundles" } catch (Exception exc) {}
|
||||
if (image) { sh "docker rmi ${image.id} ||:" }
|
||||
}
|
||||
}
|
||||
|
||||
def makeTask(image, task, envVars=null) {
|
||||
// could send in the full list of envVars for each call or provide default env vars like this:
|
||||
withEnv((envVars ?: []) + ["LIBCOMPOSE_IMAGE=${image.id}"]) { // would need `def image` at top level of file instead of in the nested block
|
||||
withChownWorkspace {
|
||||
timeout(60) {
|
||||
sh "make -e ${task}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user