IUM_04
This commit is contained in:
parent
44bb06cddf
commit
1388befc12
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -1,19 +1,12 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
|
agent { dockerfile true }
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
||||||
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
||||||
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
||||||
}
|
}
|
||||||
|
|
||||||
agent {
|
|
||||||
dockerfile {
|
|
||||||
additionalBuildArgs '--build-arg="KAGGLE_KEY=test"'
|
|
||||||
reuseNode true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Clone Repository') {
|
stage('Clone Repository') {
|
||||||
steps {
|
steps {
|
||||||
@ -27,6 +20,8 @@ pipeline {
|
|||||||
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
"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"
|
sh "python3 IUM_02.py"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user