ium_444517/Jenkinsfile
2022-04-19 16:19:09 +02:00

41 lines
1011 B
Groovy

pipeline {
agent {
dockerfile {
additionalBuildArgs '-t ium'
}
}
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
stage('Get data save artifacts') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'python3 ./data_expl.py'
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
}
}
}
}
}