2023-03-25 14:08:12 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
|
|
parameters {
|
2023-04-14 03:32:30 +02:00
|
|
|
string (
|
|
|
|
defaultValue: 'login',
|
|
|
|
description: 'Login to Kaggle',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2023-04-14 03:34:53 +02:00
|
|
|
),
|
2023-04-14 03:32:30 +02:00
|
|
|
password (
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Password to Kaggle',
|
|
|
|
name: 'KAGGLE_KEY',
|
|
|
|
trim: false
|
|
|
|
)
|
2023-03-25 14:08:12 +01:00
|
|
|
}
|
|
|
|
stages {
|
2023-04-14 03:16:34 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2023-03-25 14:08:12 +01:00
|
|
|
steps {
|
2023-04-14 03:16:34 +02:00
|
|
|
git branch: 'master',
|
|
|
|
url: 'https://git.wmi.amu.edu.pl/s487182/ium_s487182'
|
2023-03-25 14:08:12 +01:00
|
|
|
}
|
|
|
|
}
|
2023-04-14 03:16:34 +02:00
|
|
|
stage('sh: Shell Script') {
|
2023-03-25 14:08:12 +01:00
|
|
|
steps {
|
2023-04-14 03:32:30 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2023-03-25 14:08:12 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-25 13:38:51 +01:00
|
|
|
}
|