41 lines
981 B
Groovy
41 lines
981 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
steps {
|
|
args '-v $WORKSPACE:/output -u root'
|
|
}
|
|
}
|
|
parameters {
|
|
string(
|
|
defaultValue: 'kamilab0bkowska',
|
|
description: 'kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: '4825f5ebf3b5b834643d24c726593f39',
|
|
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'
|
|
archiveArtifacts artifacts: '*.csv'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|