Jnkns post action add

This commit is contained in:
MatOgr 2022-04-03 20:38:22 +02:00
parent 04ade438c3
commit 689a4cb4cb

View File

@ -1,25 +1,25 @@
pipeline {
// properties([[$class: 'GogsProjectProperty', gogsBranchFilter: '', gogsSecret: <object of type hudson.util.Secret>, gogsUsePayload: false], [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], parameters([string('CUTOFF')]), pipelineTriggers([pollSCM('')])])
agent none
stages {
stage('sh: Shell script') {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s478841-create-dataset"
}
}
stages {
stage('Simple data stats') {
steps {
sh 'chmod u+x ./scripts/data_stats.sh'
sh './scripts/data_stats.sh'
archiveArtifacts artifacts: 'avocado.data*', followSymlinks: false
}
}
// stage('Archive arifacts') {
// steps {
// archiveArtifacts artifacts: 'avocado.data*', followSymlinks: false
// }
// }
}
post {
always {
archiveArtifacts artifacts: 'data/*',
onlyIfSuccessful: true
}
}
}