fix kagle CLI
This commit is contained in:
parent
ab3ae0f05b
commit
adbdbef4b5
81
Jenkinsfile
vendored
81
Jenkinsfile
vendored
@ -1,48 +1,41 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent any
|
stage('One') {
|
||||||
stages {
|
|
||||||
stage('Preparation') {
|
properties([
|
||||||
properties([
|
parameters([
|
||||||
parameters([
|
string(defaultValue: '',
|
||||||
string(
|
description: 'Kaggle username',
|
||||||
defaultValue: 'tomaszzitkiewicz',
|
name: 'KAGGLE_USERNAME',
|
||||||
description: 'Kaggle username',
|
trim: false),
|
||||||
name: 'KAGGLE_USERNAME',
|
password(defaultValue: '',
|
||||||
trim: false
|
description: 'Kaggle token',
|
||||||
),
|
name: 'KAGGLE_KEY'),
|
||||||
password(
|
string(defaultValue: '5000',
|
||||||
defaultValue: '',
|
description: 'Data cutoff',
|
||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
name: 'CUTOFF',
|
||||||
name: 'KAGGLE_KEY'
|
trim: false)
|
||||||
|
])
|
||||||
|
]
|
||||||
)
|
)
|
||||||
])
|
stage('Two') {
|
||||||
])
|
|
||||||
}
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
stage('Build') {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
||||||
// Run the maven build
|
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s440058/ium_440058']]])
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
||||||
sh 'kaggle datasets list'
|
|
||||||
|
sh "chmod 777 ./bash.sh"
|
||||||
|
sh "./bash.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
archiveArtifacts "courses.data.dev"
|
||||||
|
archiveArtifacts "courses.data.test"
|
||||||
|
archiveArtifacts "courses.data.train"
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('checkout: Check out from version control') {
|
|
||||||
steps {
|
|
||||||
git 'https://git.wmi.amu.edu.pl/s440058/ium_440058.git'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('sh: Shell Script') {
|
|
||||||
steps {
|
|
||||||
sh 'chmod +x bash.sh'
|
|
||||||
sh './bash.sh ${CUTOFF}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('archiveArtifacts') {
|
|
||||||
steps {
|
|
||||||
archiveArtifacts 'courses.data.test'
|
|
||||||
archiveArtifacts 'courses.data.dev'
|
|
||||||
archiveArtifacts 'courses.data.train'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user