2022-03-21 11:00:03 +01:00
|
|
|
pipeline {
|
2022-04-03 13:33:15 +02:00
|
|
|
agent {
|
2022-04-03 15:24:55 +02:00
|
|
|
dockerfile {
|
|
|
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t ium"
|
|
|
|
}
|
2022-04-03 13:33:15 +02:00
|
|
|
}
|
2022-03-27 21:06:25 +02:00
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'mikolajpokrywka',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
string (
|
2022-03-27 21:55:59 +02:00
|
|
|
defaultValue: '17000',
|
2022-03-27 21:06:25 +02:00
|
|
|
description: 'cut data',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
|
|
|
)
|
2022-03-27 21:53:18 +02:00
|
|
|
}
|
2022-03-21 11:00:03 +01:00
|
|
|
stages {
|
2022-03-27 20:47:04 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2022-03-27 21:06:25 +02:00
|
|
|
steps {
|
2022-03-27 20:47:04 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
|
2022-03-27 20:38:13 +02:00
|
|
|
}
|
2022-03-27 20:40:44 +02:00
|
|
|
}
|
2022-03-27 20:47:04 +02:00
|
|
|
stage('bash script') {
|
2022-03-27 20:38:13 +02:00
|
|
|
steps {
|
2022-03-27 22:01:52 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
|
|
"CUTOFF=${params.CUTOFF}"]) {
|
2022-04-03 15:27:33 +02:00
|
|
|
// sh './process_data.sh'
|
2022-04-03 15:49:48 +02:00
|
|
|
sh 'ls'
|
2022-04-03 15:27:33 +02:00
|
|
|
sh 'python3 ./download_data_and_process.py'
|
2022-04-03 15:53:09 +02:00
|
|
|
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv, fake_job_postings.csv"
|
2022-03-27 21:53:18 +02:00
|
|
|
}
|
2022-03-21 11:00:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|