Use tagged docker image

This commit is contained in:
Marcin Kostrzewski 2022-04-02 17:15:51 +02:00
parent 312496886b
commit b74f7d819c
2 changed files with 6 additions and 9 deletions

View File

@ -15,7 +15,7 @@ pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s444409-create-dataset"
}
}

View File

@ -1,17 +1,14 @@
pipeline {
agent {
dockerfile true
docker {
image 's444409-create-dataset'
}
}
stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444409-create-dataset', selector: lastSuccessful()
}
}
stage('Show stats') {
steps {
sh "chmod u+x ./stats.sh"
sh "./stats.sh"
sh "chmod u+x /app/stats.sh"
sh "/app/stats.sh"
}
}
}