Dockerfile
This commit is contained in:
parent
3cddbbfdb4
commit
cd23bed57e
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -20,14 +20,10 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
|
||||||
KAGGLE_USERNAME = "${params.KAGGLE_USERNAME}"
|
|
||||||
KAGGLE_KEY = "${params.KAGGLE_KEY}"
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Run create-dataset script') {
|
stage('Run create-dataset script') {
|
||||||
steps {
|
steps {
|
||||||
|
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'kaggle datasets download -d mlg-ulb/creditcardfraud'
|
sh 'kaggle datasets download -d mlg-ulb/creditcardfraud'
|
||||||
sh 'unzip creditcardfraud.zip'
|
sh 'unzip creditcardfraud.zip'
|
||||||
sh 'rm creditcardfraud.zip'
|
sh 'rm creditcardfraud.zip'
|
||||||
@ -35,6 +31,7 @@ pipeline {
|
|||||||
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME'
|
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Archive Artifacts') {
|
stage('Archive Artifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
||||||
|
Loading…
Reference in New Issue
Block a user