ium_478839/Jenkinsfile

50 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-03-27 13:22:47 +02:00
pipeline {
2022-04-03 12:41:20 +02:00
agent {
dockerfile true
}
2022-03-27 20:58:21 +02:00
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 {
2022-03-27 21:41:06 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/feature']], extensions: [], userRemoteConfigs: [
[url: 'https://git.wmi.amu.edu.pl/s478839/ium_478839.git']]])
2022-03-27 20:58:21 +02:00
}
}
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{
2022-03-27 21:45:20 +02:00
archiveArtifacts artifacts: 'understat.csv', followSymlinks: false
archiveArtifacts artifacts: 'understat_per_game.csv', followSymlinks: false
2022-03-27 21:49:47 +02:00
archiveArtifacts artifacts: 'understat.csv.dev', followSymlinks: false
archiveArtifacts artifacts: 'understat.csv.train', followSymlinks: false
archiveArtifacts artifacts: 'understat.csv.test', followSymlinks: false
2022-03-27 22:16:27 +02:00
archiveArtifacts artifacts: 'understat.csv.cutted', followSymlinks: false
2022-03-27 21:18:48 +02:00
}
2022-03-27 21:06:59 +02:00
}
2022-03-27 13:22:47 +02:00
}
}