Updated Jenkinsfile to download data
This commit is contained in:
parent
98939fc551
commit
d3cf84c791
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -1,10 +1,35 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string (
|
||||
defaultValue: 'kamilguttmann',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
),
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Hello') {
|
||||
steps {
|
||||
echo 'Hello World'
|
||||
}
|
||||
},
|
||||
stage("Checkout git") {
|
||||
steps {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]])
|
||||
}
|
||||
},
|
||||
stage("Download data") {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
sh "./download_data.sh"
|
||||
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train" onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user