Update Jenkinsfile ver 1.10

This commit is contained in:
Kamila 2022-03-27 19:32:45 +02:00
parent 35d7c00cd3
commit dd575691bf

View File

@ -1,17 +1,6 @@
pipeline { pipeline {
agent any agent any
parameters { parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
buildSelector( buildSelector(
defaultSelector: lastSuccessful(), defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts', description: 'Which build to use for copying artifacts',
@ -30,15 +19,10 @@ pipeline {
steps { steps {
copyArtifacts filter: 'apps_*.csv', fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: buildParameter('BUILD_SELECTOR') copyArtifacts filter: 'apps_*.csv', fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod +x -R ./data_stats.sh' sh 'chmod +x -R ./data_stats.sh'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh './data_stats.sh' sh './data_stats.sh'
archiveArtifacts artifacts: 'stats.txt' archiveArtifacts artifacts: 'stats.txt'
} }
} }
} }
}
} }