22 lines
440 B
Plaintext
22 lines
440 B
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
docker {
|
||
|
image 'docker_image'
|
||
|
}
|
||
|
}
|
||
|
parameters{
|
||
|
buildSelector(
|
||
|
defaultSelector: lastSuccessful(),
|
||
|
name: 'BUILD_SELECTOR',
|
||
|
description: 'Which build to use for copying artifacts'
|
||
|
)
|
||
|
}
|
||
|
stages {
|
||
|
stage("Script") {
|
||
|
steps {
|
||
|
sh "./lab2/stats.sh"
|
||
|
archiveArtifacts 'stats.txt'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|