2022-03-27 17:36:35 +02:00
|
|
|
pipeline {
|
2022-04-02 22:05:04 +02:00
|
|
|
agent {
|
|
|
|
dockerfile {additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t zadanie"}
|
|
|
|
}
|
2022-03-27 17:36:35 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
2022-03-27 18:28:49 +02:00
|
|
|
defaultValue: 'shuhrer',
|
2022-03-27 17:36:35 +02:00
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
2022-03-27 18:49:36 +02:00
|
|
|
string(
|
|
|
|
defaultValue: '2',
|
|
|
|
description: 'Cutoff lines',
|
|
|
|
name: 'CUTOFF'
|
|
|
|
)
|
2022-03-27 17:36:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Check out from version control') {
|
|
|
|
steps {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Shell Script') {
|
|
|
|
steps {
|
2022-03-27 17:39:25 +02:00
|
|
|
sh 'chmod u+x download.sh'
|
2022-03-27 18:49:36 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
2022-04-02 19:26:22 +02:00
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2022-04-24 04:07:29 +02:00
|
|
|
//sh './download.sh'
|
2022-04-02 22:05:04 +02:00
|
|
|
sh "python ium-data.py"
|
2022-03-27 17:36:35 +02:00
|
|
|
}
|
2022-03-27 18:28:49 +02:00
|
|
|
archiveArtifacts artifacts: 'd_test.csv, d_dev.csv, d_train.csv'
|
2022-03-27 17:36:35 +02:00
|
|
|
}
|
2022-05-01 14:20:21 +02:00
|
|
|
}
|
|
|
|
stage ('Model - training') {
|
|
|
|
steps {
|
|
|
|
build job: 's444501-training/master', wait: false
|
|
|
|
}
|
2022-03-27 17:36:35 +02:00
|
|
|
}
|
2022-03-25 23:08:20 +01:00
|
|
|
}
|
|
|
|
}
|