2024-03-20 14:34:00 +01:00
|
|
|
pipeline {
|
2024-04-02 12:44:51 +02:00
|
|
|
agent {
|
2024-04-02 13:47:56 +02:00
|
|
|
dockerfile {
|
|
|
|
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
}
|
2024-04-02 12:44:51 +02:00
|
|
|
}
|
2024-03-26 18:56:58 +01:00
|
|
|
parameters {
|
2024-04-02 13:47:56 +02:00
|
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: 'alicjaszulecka', description: 'Kaggle username')
|
|
|
|
password(name: 'KAGGLE_KEY', defaultValue:'', description: 'Kaggle Key')
|
|
|
|
string(name: 'CUTOFF', defaultValue: '100', description: 'cut off number')
|
2024-03-26 18:56:58 +01:00
|
|
|
}
|
2024-03-20 14:34:00 +01:00
|
|
|
stages {
|
2024-03-26 18:56:58 +01:00
|
|
|
stage('Git Checkout') {
|
|
|
|
steps {
|
2024-04-02 13:47:56 +02:00
|
|
|
checkout scm
|
2024-03-26 18:56:58 +01:00
|
|
|
}
|
|
|
|
}
|
2024-04-02 13:47:56 +02:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
script {
|
2024-04-02 13:49:42 +02:00
|
|
|
def customImage = docker.build("464914", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
2024-04-02 13:47:56 +02:00
|
|
|
customImage.inside {
|
|
|
|
sh 'bash ./get_dataset.sh ${params.CUTOFF}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|