ium_444501/Jenkinsfile

41 lines
890 B
Plaintext
Raw Normal View History

2022-03-27 17:36:35 +02:00
pipeline {
agent any
parameters {
string(
2022-03-27 18:08:03 +02:00
defaultValue: '',
2022-03-27 17:36:35 +02:00
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
}
}
stage('Shell Script') {
steps {
2022-03-27 17:39:25 +02:00
sh 'chmod u+x download.sh'
2022-03-27 17:36:35 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
2022-03-27 18:03:31 +02:00
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
2022-03-27 17:36:35 +02:00
sh './download.sh'
}
}
}
2022-03-25 23:08:20 +01:00
}
}