2024-03-20 14:34:00 +01:00
|
|
|
pipeline {
|
2024-04-02 14:15:40 +02:00
|
|
|
agent any
|
2024-03-26 18:56:58 +01:00
|
|
|
parameters {
|
2024-04-02 14:13:40 +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-04-02 19:05:02 +02:00
|
|
|
stage('Git Checkout') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
2024-04-29 21:02:47 +02:00
|
|
|
stage('Copy Artifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
2024-04-02 19:36:23 +02:00
|
|
|
}
|
2024-04-29 21:02:47 +02:00
|
|
|
stage('Train') {
|
2024-04-14 12:58:46 +02:00
|
|
|
steps {
|
2024-04-14 13:03:36 +02:00
|
|
|
script {
|
2024-04-14 12:58:46 +02:00
|
|
|
def customImage = docker.build("custom-image")
|
|
|
|
customImage.inside {
|
|
|
|
sh 'python3 ./model.py'
|
|
|
|
archiveArtifacts artifacts: 'model.pth, predictions.txt', onlyIfSuccessful: true
|
|
|
|
}
|
2024-04-14 13:03:36 +02:00
|
|
|
}
|
2024-04-14 12:58:46 +02:00
|
|
|
}
|
|
|
|
}
|
2024-04-02 14:13:40 +02:00
|
|
|
}
|
|
|
|
}
|