Dockerfile
This commit is contained in:
parent
cd23bed57e
commit
7cc806ba75
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -1,10 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent any
|
||||||
dockerfile {
|
|
||||||
filename 'Dockerfile'
|
|
||||||
args '-u root'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
string (
|
string (
|
||||||
@ -21,17 +16,29 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Run create-dataset script') {
|
stage('Download dataset') {
|
||||||
steps {
|
steps {
|
||||||
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Run create-dataset script') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
sh 'chmod +x create-dataset.py'
|
sh 'chmod +x create-dataset.py'
|
||||||
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