Changed Jenkinsfile
This commit is contained in:
parent
69be9e43d1
commit
7de7ed5ac0
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -3,7 +3,7 @@ pipeline {
|
|||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
string(
|
string(
|
||||||
defaultValue: 'tomaszzitkiewicz',
|
defaultValue: 'gulczas',
|
||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
trim: false
|
||||||
@ -21,13 +21,15 @@ pipeline {
|
|||||||
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
|
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Run Script') {
|
stage('Run Script') {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
steps {
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
script {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'bash download_dataset.sh $KAGGLE_USERNAME $KAGGLE_KEY'
|
sh 'bash download_dataset.sh $KAGGLE_USERNAME $KAGGLE_KEY'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Archive Artifacts') {
|
stage('Archive Artifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||||
|
Loading…
Reference in New Issue
Block a user