2022-03-21 10:57:17 +01:00
|
|
|
pipeline {
|
2022-03-21 22:10:51 +01:00
|
|
|
parameters {
|
2022-03-21 22:08:38 +01:00
|
|
|
string(
|
2022-03-21 22:19:34 +01:00
|
|
|
defaultValue: 'szymonjadczak',
|
2022-03-21 22:08:38 +01:00
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
2022-03-23 19:42:27 +01:00
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
2022-03-23 19:44:43 +01:00
|
|
|
string(
|
2022-03-23 19:38:59 +01:00
|
|
|
defaultValue: '',
|
2022-03-23 19:43:19 +01:00
|
|
|
description: 'Value for head command',
|
2022-03-23 19:40:11 +01:00
|
|
|
name: 'CUTOFF'
|
2022-03-23 19:38:59 +01:00
|
|
|
)
|
2022-03-21 22:10:51 +01:00
|
|
|
}
|
2022-04-03 14:11:19 +02:00
|
|
|
agent { dockerfile true}
|
2022-03-21 22:10:51 +01:00
|
|
|
environment {
|
|
|
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
|
|
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
2022-03-23 19:38:59 +01:00
|
|
|
CUTOFF="$params.CUTOFF"
|
2022-03-21 22:10:51 +01:00
|
|
|
}
|
2022-03-21 22:12:49 +01:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!!!'
|
2022-04-03 14:25:06 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444386/ium_444386']]])
|
2022-04-03 13:53:56 +02:00
|
|
|
archiveArtifacts 'data.csv'
|
2022-03-21 22:12:49 +01:00
|
|
|
}
|
2022-03-21 22:08:38 +01:00
|
|
|
}
|
2022-03-21 22:12:49 +01:00
|
|
|
}
|
2022-03-21 10:57:17 +01:00
|
|
|
}
|