ium_478855/Jenkinsfile

46 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2022-03-27 23:01:44 +02:00
pipeline {
parameters{
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_SECRET_KEY'
)
string(
defaultValue: 'h7557h',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME'
)
2022-04-03 22:16:19 +02:00
string(
defaultValue: '10',
description: 'Value for head command',
name: 'CUTOFF'
)
2022-03-27 23:01:44 +02:00
}
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
2022-04-03 22:16:19 +02:00
CUTOFF="$params.CUTOFF"
2022-03-27 23:01:44 +02:00
}
2022-05-04 19:18:48 +02:00
agent
{
dockerfile true
}
stages {
stage('Checkout') {
2022-03-27 22:50:50 +02:00
steps {
2022-05-04 19:28:20 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's478855', url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git']]])
2022-03-27 22:50:50 +02:00
}
}
2022-05-04 19:18:48 +02:00
stage("Preparation") {
2022-04-03 22:26:13 +02:00
steps {
2022-04-03 22:36:13 +02:00
sh "chmod u+x ./preparation.sh"
2022-05-04 19:18:48 +02:00
sh "./preparation.sh"
archiveArtifacts 'KaggleV2-May-2016.csv'
archiveArtifacts 'data_description.csv'
archiveArtifacts 'train_dataset.csv'
archiveArtifacts 'test_dataset.csv'
2022-04-03 22:16:19 +02:00
}
}
2022-05-04 19:18:48 +02:00
}
2022-03-27 23:01:44 +02:00
}