update jenkinsfile and jenkinsfile2

This commit is contained in:
Maciej Czajka 2022-04-02 17:38:38 +02:00
parent f90fa2bed4
commit f1179e9534
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF}"
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka"
}
}
parameters {

View File

@ -1,5 +1,9 @@
pipeline {
agent any
agent {
docker {
image 'maciejczajka'
}
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
@ -10,7 +14,7 @@ pipeline {
stages {
stage("Script") {
steps {
sh "docker run -t czajson99/ium:v9"
sh "./stats.sh"
}
}
}