ium_s487182/Jenkinsfile

33 lines
880 B
Groovy

pipeline {
agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters {
string (
defaultValue: 'login',
description: 'Login to Kaggle',
name: 'KAGGLE_USERNAME',
trim: false
)
password (
defaultValue: '',
description: 'Password to Kaggle',
name: 'KAGGLE_KEY',
trim: false
)
}
stages {
stage('checkout: Check out from version control') {
steps {
git branch: 'master',
url: 'https://git.wmi.amu.edu.pl/s487182/ium_s487182'
}
}
stage('sh: Shell Script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
}
}
}
}