ium_444354/Jenkinsfile

37 lines
1.0 KiB
Plaintext
Raw Normal View History

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:46:09 +01:00
sh "chmod u+x ./script.sh"
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./script.sh"
2022-03-24 19:43:47 +01:00
archiveArtifacts 'data.txt'
}
}
}
2022-03-21 11:13:00 +01:00
}