Zaktualizuj 'Jenkinsfile'
This commit is contained in:
parent
7cdb4a34a2
commit
ed43b208b6
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -1,15 +1,14 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: 'szymonparafinski',
|
||||
defaultValue: 'maciejczajka',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
)
|
||||
password(
|
||||
defaultValue: 'e76b64bca74a678bf21a6e18430d9b12',
|
||||
defaultValue: 'd8f044ad2b96d32372e22f9054c02bb1',
|
||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
@ -24,27 +23,25 @@ pipeline {
|
||||
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||
CUTOFF="$params.CUTOFF"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout'){
|
||||
steps {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444018', url: 'https://git.wmi.amu.edu.pl/s444018/ium_444018.git']]])
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444356', url: 'https://git.wmi.amu.edu.pl/s444356/ium_444356.git']]])
|
||||
}
|
||||
}
|
||||
|
||||
stage('Script'){
|
||||
stage('Script'){
|
||||
steps {
|
||||
script {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh 'echo KAGGLE_KEY: $KAGGLE_KEY
|
||||
sh 'kaggle datasets list'
|
||||
}
|
||||
}
|
||||
sh './download_dataset.sh $CUTOFF'
|
||||
archiveArtifacts artifacts: 'dataset.csv.dev, dataset.csv.test, dataset.csv.train', followSymlinks: false
|
||||
sh './download.sh $CUTOFF'
|
||||
archiveArtifacts artifacts: 'all_games.csv.dev, all_games.csv.test, all_games.csv.train', followSymlinks: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user