44 lines
1.2 KiB
Groovy
44 lines
1.2 KiB
Groovy
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'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Hello') {
|
|
steps {
|
|
echo 'Hello world!'
|
|
}
|
|
}
|
|
stage('Checkout') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s444498/ium_444498.git'
|
|
}
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: '*atp*.csv', onlyIfSuccessful: true
|
|
}
|
|
//df_atp.csv atp_train.csv atp_test.csv atp_dev.csv
|
|
}
|
|
}
|