diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index e6033f2..cabc241 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + docker { image 'ubuntu:latest' } + } parameters { buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') } @@ -12,5 +14,15 @@ pipeline { archiveArtifacts "stats.txt" } } + stage("Docker Image"){ + agent { + docker { + image "s434804/ium:0.1" + } + } + steps { + sh 'python3 ./stats.py' + } + } } } \ No newline at end of file