32 lines
820 B
Plaintext
32 lines
820 B
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile_2'
|
|
// dir 'build'
|
|
// label 'label'
|
|
//additionalBuildArgs '--build-arg version=1.0.2'
|
|
//args '-v /tmp:/tmp'
|
|
}
|
|
}
|
|
parameters {
|
|
buildSelector (
|
|
name: 'BUILD_SELECTOR',
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts?',
|
|
)
|
|
}
|
|
stages {
|
|
stage('Load Artifact') {
|
|
steps {
|
|
script {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's452627-training/master/', selector: buildParameter("BUILD_SELECTOR")
|
|
}
|
|
}
|
|
}
|
|
stage('Archive Output') {
|
|
steps {
|
|
archiveArtifacts 'metrics.txt'
|
|
}
|
|
}
|
|
}
|
|
} |