ium_444507/Jenkinsfile-docker
Adam Wojdyla 83bc088148 no cache
2022-04-02 03:30:08 +02:00

36 lines
980 B
Plaintext

pipeline {
parameters {
string(
defaultValue: 'heatedboss2',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '117928',
description: 'Cutoff',
name: 'CUTOFF',
trim: false
)
}
agent {
dockerfile{
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY"'
}
}
stages {
stage('Prepare dataset') {
steps {
sh 'python3 -m pip install kaggle --no-cache-dir '
sh 'python3 -m pip install numpy --no-cache-dir '
sh 'python3 -m pip install pandas --no-cache-dir '
sh 'python3 ./script.py'
}
}
}
}