Update Jenkinsfile ver 1.10
This commit is contained in:
parent
35d7c00cd3
commit
dd575691bf
@ -1,17 +1,6 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: 'kamilab0bkowska',
|
||||
description: 'kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
)
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'kaggle passowrd',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
@ -28,17 +17,12 @@ pipeline {
|
||||
|
||||
stage('Copy and proceed') {
|
||||
steps {
|
||||
copyArtifacts filter: 'apps_*.csv', fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
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'
|
||||
archiveArtifacts artifacts: 'stats.txt'
|
||||
}
|
||||
copyArtifacts filter: 'apps_*.csv', fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
sh 'chmod +x -R ./data_stats.sh'
|
||||
sh './data_stats.sh'
|
||||
archiveArtifacts artifacts: 'stats.txt'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user