iumKC/JenkinsDatastatsDockerhub
Karol Cyganik 168e15ea28 add unzip
2024-04-14 14:29:15 +02:00

48 lines
1.3 KiB
Plaintext

pipeline {
agent {
docker {
image 'karolcyganik/ium:latest'
}
}
parameters {
string(
defaultValue: 'karol9',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
string(
defaultValue: '100',
description: 'Dataset cutoff size',
name: 'CUTOFF'
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Checkout') {
steps {
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
}
}
stage('Copy Artifacts') {
steps {
script {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495715-create-dataset', selector: specific('16')
sh 'sudo apt-get install unzip'
sh 'unzip football-semantic-segmentation.zip -d football_dataset'
}
}
}
stage('Execute Script') {
steps {
sh 'python3 main.py'
}
}
}
}