update Jenkinsfile2
This commit is contained in:
parent
ca961f47b5
commit
20265af004
22
Jenkinsfile_stats
Normal file
22
Jenkinsfile_stats
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user