2022-03-21 10:57:17 +01:00
|
|
|
pipeline {
|
2022-04-03 14:48:04 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'szymonjadczak',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
string(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Value for head command',
|
|
|
|
name: 'CUTOFF'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
|
|
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
|
|
|
CUTOFF="$params.CUTOFF"
|
|
|
|
}
|
2022-04-03 15:05:44 +02:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
2022-04-03 15:29:11 +02:00
|
|
|
additionalBuildArgs "-t ium"
|
2022-04-03 15:05:44 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-03 14:48:04 +02:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!!!'
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444386/ium_444386']]])
|
|
|
|
sh "chmod u+x ./dataset_download.sh"
|
|
|
|
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./dataset_download.sh"
|
2022-04-10 17:23:30 +02:00
|
|
|
archiveArtifacts 'data.csv'
|
2022-04-27 21:43:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Stage 2') {
|
|
|
|
steps {
|
2022-04-27 21:28:54 +02:00
|
|
|
build job: 's444386-training/training-evaluation/'
|
2022-04-03 14:48:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-21 10:57:17 +01:00
|
|
|
}
|