second multibranch pipeline
Some checks failed
s444354-evaluation/pipeline/head There was a failure building this commit
Some checks failed
s444354-evaluation/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a42987c884
commit
a4ef4af182
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -29,9 +29,9 @@ pipeline {
|
||||
stages {
|
||||
stage("Check out from version control") {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444354', url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354.git']]])
|
||||
}
|
||||
}
|
||||
stage("Shell Script") {
|
||||
steps {
|
||||
sh "chmod u+x ./script.sh"
|
||||
|
14
Jenkinsfile2
14
Jenkinsfile2
@ -1,21 +1,23 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
dockerfile {image 'ksero/ium:pytorch'}
|
||||
}
|
||||
parameters{
|
||||
|
||||
/* parameters{
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
name: 's444354-create-dataset',
|
||||
description: 'Which build to use for copying artifacts'
|
||||
)
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Check out from version control") {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
steps {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444354', url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354.git']]])
|
||||
}
|
||||
}
|
||||
stage("Shell Script") {
|
||||
steps {
|
||||
|
32
Jenkinsfile_evaluation
Normal file
32
Jenkinsfile_evaluation
Normal file
@ -0,0 +1,32 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 's444507_create_dataset_image:latest' }
|
||||
}
|
||||
parameters {
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts.', name: 'BUILD_SELECTOR')
|
||||
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||
|
||||
}
|
||||
stages {
|
||||
stage('Get arifacts') {
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: '444507-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-evaluation/master', selector: buildParameter('BUILD_SELECTOR'), optional: true
|
||||
}
|
||||
}
|
||||
stage('Run evaluation') {
|
||||
steps {
|
||||
sh "python3 ./lab06_evaluation.py ${currentBuild.number}"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'metrics.*', followSymlinks: false
|
||||
}
|
||||
always {
|
||||
emailext body: "${currentBuild.currentResult}", subject: 's444507-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
}
|
||||
}
|
23
Jenkinsfile_stats
Normal file
23
Jenkinsfile_stats
Normal file
@ -0,0 +1,23 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 's444354_create_dataset_image:latest' }
|
||||
}
|
||||
stages {
|
||||
stage('Get arifacts') {
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's44354-create-dataset', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
stage('Show stats') {
|
||||
steps {
|
||||
sh "python3 ./data_processing.py"
|
||||
sh "python3 ./pytorch/pytorch.py"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'result.txt', followSymlinks: false
|
||||
}
|
||||
}
|
||||
}
|
28
Jenkinsfile_training
Normal file
28
Jenkinsfile_training
Normal file
@ -0,0 +1,28 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 's444354_create_dataset_image:latest' }
|
||||
}
|
||||
parameters {
|
||||
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
|
||||
}
|
||||
stages {
|
||||
stage('Get arifacts') {
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's444354-create-dataset', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
stage('Show stats') {
|
||||
steps {
|
||||
sh "python3 ./pytorch/pytorch.py $epoch"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'pytorch/result.txt', followSymlinks: false
|
||||
}
|
||||
always {
|
||||
emailext body: "${currentBuild.currentResult}", subject: 's444354-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user