2021-05-07 20:16:31 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('checkout') {
|
|
|
|
steps {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]])
|
|
|
|
}
|
|
|
|
}
|
2021-05-07 21:37:28 +02:00
|
|
|
stage('Copy artifact') {
|
|
|
|
steps {
|
2021-05-07 22:00:21 +02:00
|
|
|
copyArtifacts filter: 'train_dataset.pt,val_dataset.pt', fingerprintArtifacts: false, projectName: 's426206-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2021-05-07 21:37:28 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-07 20:16:31 +02:00
|
|
|
stage('docker') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
def img = docker.build('rokoch/ium:01')
|
|
|
|
img.inside {
|
|
|
|
sh 'chmod +x dlgssdpytorch.py'
|
|
|
|
sh 'python3 ./dlgssdpytorch.py'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('end') {
|
|
|
|
steps {
|
|
|
|
//Zarchiwizuj wynik
|
|
|
|
archiveArtifacts 'model.pt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|