Changed Jenkinsfile

This commit is contained in:
s464953 2024-03-23 20:30:57 +01:00
parent 69be9e43d1
commit 7de7ed5ac0

10
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
parameters {
string(
defaultValue: 'tomaszzitkiewicz',
defaultValue: 'gulczas',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
@ -21,13 +21,15 @@ pipeline {
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
}
}
}
stage('Run Script') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
steps {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'bash download_dataset.sh $KAGGLE_USERNAME $KAGGLE_KEY'
}
}
}
}
stage('Archive Artifacts') {
steps {
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true