repair jenkins
This commit is contained in:
parent
1dc3f6b532
commit
8e32b8197a
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -19,11 +19,14 @@ pipeline {
|
||||
stage('Download Dataset') {
|
||||
steps {
|
||||
script {
|
||||
// Create a directory to store the dataset
|
||||
def datasetDir = 'football-semantic-segmentation'
|
||||
sh "mkdir ${datasetDir}"
|
||||
|
||||
// Download the dataset
|
||||
withCredentials([string(value: params.KAGGLE_KEY, variable: 'KAGGLE_API_TOKEN')]) {
|
||||
// Set environment variables
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
// Download the dataset
|
||||
sh "KAGGLE_CONFIG_DIR=. kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user