Update Jenkinsfile ver 1.10
This commit is contained in:
parent
35d7c00cd3
commit
dd575691bf
@ -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',
|
||||||
@ -28,17 +17,12 @@ pipeline {
|
|||||||
|
|
||||||
stage('Copy and proceed') {
|
stage('Copy and proceed') {
|
||||||
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}",
|
sh './data_stats.sh'
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
archiveArtifacts artifacts: 'stats.txt'
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
||||||
sh './data_stats.sh'
|
|
||||||
archiveArtifacts artifacts: 'stats.txt'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user