2022-03-27 21:34:16 +02:00
|
|
|
node {
|
2022-04-24 23:55:28 +02:00
|
|
|
docker.image('s444452/ium:1.3').inside {
|
2022-04-10 20:29:59 +02:00
|
|
|
stage('Preparation') {
|
2022-03-27 21:34:16 +02:00
|
|
|
properties([parameters([
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
])])
|
|
|
|
}
|
|
|
|
stage('Clone repository') {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '5e0a58a0-03ad-41dd-beff-7b8a07c7fe0c', url: 'https://git.wmi.amu.edu.pl/s444452/ium_444452.git']]])
|
|
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
copyArtifacts filter: 'dataset.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-04-10 20:29:59 +02:00
|
|
|
copyArtifacts filter: 'train_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
copyArtifacts filter: 'test_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
copyArtifacts filter: 'dev_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-03-27 21:34:16 +02:00
|
|
|
}
|
|
|
|
stage('Run script') {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
2022-05-02 16:21:45 +02:00
|
|
|
sh "python3 Scripts/generate_dataset_stats.py '.'"
|
2022-03-27 21:34:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
2022-04-10 21:28:24 +02:00
|
|
|
archiveArtifacts "train_stats.txt, test_stats.txt, dev_stats.txt"
|
2022-03-27 21:34:16 +02:00
|
|
|
}
|
2022-04-10 20:29:59 +02:00
|
|
|
}
|
|
|
|
}
|