fix #2
This commit is contained in:
parent
3d58aca307
commit
13293dbe3b
@ -30,27 +30,11 @@ pipeline {
|
||||
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
||||
}
|
||||
}
|
||||
stage('Download Dataset') {
|
||||
steps {
|
||||
script {
|
||||
def datasetDir = 'football_dataset'
|
||||
def downloadDir = 'football_dataset_download'
|
||||
if (!fileExists(downloadDir)) {
|
||||
sh "mkdir ${downloadDir}"
|
||||
}
|
||||
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
sh "kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${downloadDir}"
|
||||
sh "unzip ${downloadDir}/*.zip -d ${datasetDir}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Copy Artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495715-create-dataset', selector: specific('16')
|
||||
sh 'unzip football-semantic-segmentation.zip -d football_dataset'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user