ium_444498/Jenkinsfile

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-03-21 11:28:45 +01:00
pipeline {
agent any
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 {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh "chmod +x -R ${env.WORKSPACE}"
sh './simple_init.sh'
}
2022-03-26 11:59:53 +01:00
}
}
2022-03-21 11:28:45 +01:00
}
post {
always {
archiveArtifacts artifacts: '*atp*.csv', onlyIfSuccessful: true
}
}
2022-03-26 11:42:48 +01:00
}