2022-03-21 11:13:00 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-03-24 19:43:47 +01:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'sknera',
|
|
|
|
description: 'username',
|
|
|
|
name: '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"
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world'
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354']]])
|
2022-03-24 19:44:48 +01:00
|
|
|
sh "chmod u+x ./download.sh"
|
2022-03-24 19:43:47 +01:00
|
|
|
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./download.sh"
|
|
|
|
archiveArtifacts 'data.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:13:00 +01:00
|
|
|
}
|