Jan Nowak
4133f24e59
All checks were successful
s426206-training/pipeline/head This commit looks good
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
pipeline {
|
|
agent any
|
|
parameters {
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR')
|
|
}
|
|
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']]])
|
|
}
|
|
}
|
|
stage('Copy artifact') {
|
|
steps {
|
|
copyArtifacts filter: 'train_dataset.pt,val_dataset.pt', fingerprintArtifacts: false, projectName: 's426206-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
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'
|
|
//Wysłanie maila
|
|
emailext body: 'test',
|
|
subject: 's426206',
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|