Cleanup Jenkinsfiles
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
s444409-training/pipeline/head This commit looks good

This commit is contained in:
Marcin Kostrzewski 2022-05-06 20:16:15 +02:00
parent cdf349e089
commit d02ebda808
4 changed files with 6 additions and 60 deletions

38
Jenkinsfile vendored
View File

@ -1,38 +0,0 @@
pipeline {
agent any
parameters {
string(
defaultValue: 'marcinkostrzewski',
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'
)
}
stages {
stage('Install dependencies') {
steps {
sh "pip install --user -r requirements.txt"
}
}
stage('Fetch and split dataset') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh "chmod u+x ./download_dataset.sh"
sh "./download_dataset.sh"
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'data/*',
onlyIfSuccessful: true
}
}
}

View File

@ -1,15 +1,13 @@
pipeline { pipeline {
agent any agent {
docker {
image 's444409-create-dataset'
}
}
stages { stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444409-create-dataset', selector: lastSuccessful()
}
}
stage('Show stats') { stage('Show stats') {
steps { steps {
sh "chmod u+x ./stats.sh" sh "/app/stats.sh"
sh "./stats.sh"
} }
} }
} }

View File

@ -1,14 +0,0 @@
pipeline {
agent {
docker {
image 's444409-create-dataset'
}
}
stages {
stage('Show stats') {
steps {
sh "/app/stats.sh"
}
}
}
}