Update 'Jenkinsfile'

This commit is contained in:
Kacper Dudzic 2022-03-25 22:11:08 +01:00
parent 23218ef22c
commit 63fb2b6347

40
Jenkinsfile vendored
View File

@ -1,28 +1,24 @@
pipeline { pipeline {
agent any agent any
parameters{
string(
defaultValue: 'kaerde',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '36b8c984addfb7a043d772a9c6b23a1f',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '130000',
description: 'wielkość odcięcia zbioru danych',
name: 'CUTOFF'
)
}
stages { stages {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'kaerde',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: '36b8c984addfb7a043d772a9c6b23a1f',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
),
string(
defaultValue: '130000',
description: 'wielkość odcięcia zbioru danych',
name: 'CUTOFF'
)
])
])
}
stage('Stage 1') { stage('Stage 1') {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",