31 lines
800 B
Groovy
31 lines
800 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters{
|
|
string(
|
|
defaultValue: 'maciejsobkowiak',
|
|
description: 'Kaggle username',
|
|
name: 'username',
|
|
trim: false
|
|
)
|
|
}
|
|
environment {
|
|
KAGGLE_KEY = "${params.key}"
|
|
KAGGLE_USERNAME = "${params.username}"
|
|
}
|
|
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
|
|
}
|
|
}
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
sh 'chmod +x preparations.sh'
|
|
sh './preparations.sh'
|
|
}
|
|
}
|
|
}
|
|
} |