ium_440058/Jenkinsfile

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-03-28 20:05:59 +02:00
pipeline {
2021-03-28 21:11:46 +02:00
agent any
stages {
2021-03-28 21:36:23 +02:00
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'tomaszzitkiewicz',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
])
])
}
stage('Build') {
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
2021-03-28 21:11:46 +02:00
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s440058/ium_440058.git'
}
}
stage('sh: Shell Script') {
steps {
2021-03-28 21:13:19 +02:00
sh 'chmod +x bash.sh'
2021-03-28 21:14:28 +02:00
sh './bash.sh ${CUTOFF}'
2021-03-28 21:11:46 +02:00
}
}
stage('archiveArtifacts') {
steps {
2021-03-28 21:17:37 +02:00
archiveArtifacts 'courses.data.test'
archiveArtifacts 'courses.data.dev'
archiveArtifacts 'courses.data.train'
2021-03-28 21:11:46 +02:00
}
}
}
2021-03-28 20:05:59 +02:00
}