ium_434760/Jenkinsfile
2021-03-28 22:13:52 +02:00

41 lines
1.2 KiB
Groovy

pipeline {
agent any
stages {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'annadnowak',
description: 'Kaggle username',
name: 'KAGGLE_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'
)
])
])
}
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
}
}
stage('sh: Shell Script')
{
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh './script.sh'
}
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'output.txt'
}
}
}
}