2022-03-21 11:28:45 +01:00
|
|
|
pipeline {
|
2022-03-28 11:23:11 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2022-03-26 13:05:15 +01:00
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'wirus006',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password (
|
|
|
|
defaultValue: 'c3323e37d3f91a0914d0172ef3c7c30c',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
2022-03-21 11:28:45 +01:00
|
|
|
stages {
|
2022-03-26 11:42:48 +01:00
|
|
|
stage('Hello') {
|
2022-03-21 11:28:45 +01:00
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
2022-03-26 11:42:48 +01:00
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
2022-03-26 11:47:48 +01:00
|
|
|
git 'https://git.wmi.amu.edu.pl/s444498/ium_444498.git'
|
2022-03-26 11:42:48 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-26 11:59:53 +01:00
|
|
|
stage('Shell Script') {
|
|
|
|
steps {
|
2022-03-26 13:05:15 +01:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
|
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
2022-03-28 11:23:11 +02:00
|
|
|
sh 'echo hello world | figlet'
|
2022-03-26 13:05:15 +01:00
|
|
|
}
|
2022-03-26 11:59:53 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:28:45 +01:00
|
|
|
}
|
2022-03-26 14:08:23 +01:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: '*atp*.csv', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
2022-03-26 11:42:48 +01:00
|
|
|
}
|