repair jenkins
This commit is contained in:
parent
1dc3f6b532
commit
b24acb3c0a
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -20,11 +20,13 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def datasetDir = 'football-semantic-segmentation'
|
def datasetDir = 'football-semantic-segmentation'
|
||||||
|
if (!fileExists(datasetDir)) {
|
||||||
sh "mkdir ${datasetDir}"
|
sh "mkdir ${datasetDir}"
|
||||||
|
}
|
||||||
|
|
||||||
// Download the dataset
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
withCredentials([string(value: params.KAGGLE_KEY, variable: 'KAGGLE_API_TOKEN')]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh "KAGGLE_CONFIG_DIR=. kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
|
sh "kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,7 +38,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
git url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user