repair jenkins

This commit is contained in:
Karol Cyganik 2024-03-26 19:51:03 +01:00
parent 1dc3f6b532
commit e73068429a

10
Jenkinsfile vendored
View File

@ -20,11 +20,13 @@ pipeline {
steps {
script {
def datasetDir = 'football-semantic-segmentation'
if (!fileExists(datasetDir)) {
sh "mkdir ${datasetDir}"
}
// Download the dataset
withCredentials([string(value: params.KAGGLE_KEY, variable: 'KAGGLE_API_TOKEN')]) {
sh "KAGGLE_CONFIG_DIR=. kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh "kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
}
}
}
@ -36,7 +38,7 @@ pipeline {
}
stage('Checkout') {
steps {
git url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
git branch: 'main', git url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
}
}
}