2022-03-27 13:22:47 +02:00
|
|
|
pipeline {
|
2022-03-27 20:58:21 +02:00
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'sebastianwalesa',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password (
|
|
|
|
defaultValue: 'c879e3806be4cd6ade7aa10ea81d4cfe',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/ kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
2022-03-27 13:22:47 +02:00
|
|
|
stages {
|
2022-03-27 20:58:21 +02:00
|
|
|
stage('First step') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
git 'https://git.wmi.amu.edu.pl/s478839/ium_478839.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Shell Script') {
|
2022-03-27 13:22:47 +02:00
|
|
|
steps {
|
2022-03-27 20:58:21 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
|
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
2022-03-27 15:58:36 +02:00
|
|
|
sh './skrypt.sh'
|
2022-03-27 20:58:21 +02:00
|
|
|
}
|
2022-03-27 13:22:47 +02:00
|
|
|
}
|
|
|
|
}
|
2022-03-27 21:06:59 +02:00
|
|
|
stage('Arichve') {
|
2022-03-27 21:18:48 +02:00
|
|
|
steps{
|
|
|
|
archiveArtifacts artifacts: 'understat.csv', followSymlinks: false
|
|
|
|
}
|
2022-03-27 21:06:59 +02:00
|
|
|
}
|
2022-03-27 13:22:47 +02:00
|
|
|
}
|
|
|
|
}
|