Update second Jenkinsfile
This commit is contained in:
parent
d8591d4420
commit
be94cb51c2
@ -1,5 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
docker { image 'ubuntu:latest' }
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
||||||
}
|
}
|
||||||
@ -12,5 +14,15 @@ pipeline {
|
|||||||
archiveArtifacts "stats.txt"
|
archiveArtifacts "stats.txt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage("Docker Image"){
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image "s434804/ium:0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'python3 ./stats.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user