This commit is contained in:
AWieczarek 2024-04-02 23:13:26 +02:00
parent 44bb06cddf
commit 1388befc12

13
Jenkinsfile vendored
View File

@ -1,19 +1,12 @@
pipeline {
agent { dockerfile true }
parameters {
string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych')
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
}
agent {
dockerfile {
additionalBuildArgs '--build-arg="KAGGLE_KEY=test"'
reuseNode true
}
}
stages {
stage('Clone Repository') {
steps {
@ -27,6 +20,8 @@ pipeline {
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
"KAGGLE_KEY=${env.KAGGLE_KEY}"
]) {
sh 'mkdir -p ~/.kaggle' // Create .kaggle directory if needed
sh 'echo \'{"username": "${KAGGLE_USERNAME}", "key": "${KAGGLE_KEY}"}\' > ~/.kaggle/kaggle.json'
sh "python3 IUM_02.py"
}
}