prepare jenkinsfile
This commit is contained in:
parent
162c6a9dac
commit
cbd468dc8d
@ -14,4 +14,4 @@ RUN pip3 install --no-cache-dir Pillow==10.2.0
|
|||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["python", "your_script_name.py"]
|
CMD ["python", "main.py"]
|
||||||
|
56
JenkinsDatastats
Normal file
56
JenkinsDatastats
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
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('Download Dataset') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
def datasetDir = 'football-semantic-segmentation'
|
||||||
|
if (!fileExists(datasetDir)) {
|
||||||
|
sh "mkdir ${datasetDir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
|
sh "kaggle datasets download sadhliroomyprime/football-semantic-segmentation -p ${datasetDir}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts artifacts: 'football-semantic-segmentation/**', onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Stats in docker') {
|
||||||
|
steps {
|
||||||
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user