Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Szymon Parafiński 2022-03-27 22:12:40 +02:00
parent 0673204277
commit 83273a364b

11
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ pipeline {
trim: false
)
password(
defaultValue: '',
defaultValue: 'e76b64bca74a678bf21a6e18430d9b12',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
@ -26,23 +26,24 @@ pipeline {
}
stages {
stage('Check out from version control'){
stage('Checkout'){
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444018', url: 'https://git.wmi.amu.edu.pl/s444018/ium_444018.git']]])
}
}
stage('Script'){
stage('Script'){
steps {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'echo KAGGLE_KEY: $KAGGLE_KEY'
sh 'kaggle datasets list'
}
}
sh './download_dataset.sh $CUTOFF'
archiveArtifacts artifacts: 'dataset.csv.dev, dataset.csv.test, dataset.csv.train', followSymlinks: false
}
}
}
}
}