ium_434742/Jenkinsfile
2021-03-28 15:17:56 +02:00

39 lines
1.1 KiB
Groovy

pipeline {
agent any
parameters {
string(
defaultValue: 'yerbamate',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
}
stages {
stage('checkout: Check out from version control') {
steps {
git credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc',
url: 'https://git.wmi.amu.edu.pl/s434742/ium_434742'
}
}
stage('sh: Shell Script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod +x avocado-preprocessing.sh'
sh 'chmod +x ./avocado-preprocessing.sh'
sh './avocado-preprocessing.sh ${CUTOFF}'
}
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}
}
}