Update second Jenkinsfile

This commit is contained in:
Dawid 2021-04-08 23:23:08 +02:00
parent d8591d4420
commit be94cb51c2

View File

@ -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'
}
}
} }
} }