add jenks files
This commit is contained in:
parent
c0ae2dd329
commit
30326bc23a
34
JenkinsfileDatasetStats
Normal file
34
JenkinsfileDatasetStats
Normal file
@ -0,0 +1,34 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(
|
||||
name: 'BUILD_SELECTOR',
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'A build to take the artifacts from'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Copy artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts(
|
||||
projectName: 'x1-create-dataset',
|
||||
selector: buildParameter('BUILD_SELECTOR'),
|
||||
target: './'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run python file') {
|
||||
steps {
|
||||
script {
|
||||
sh 'ls -l'
|
||||
docker.image('docker-image').inside {
|
||||
sh 'ls -l'
|
||||
sh 'python3 ./datasetStats.py'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
46
JenkinsfileEvaluate
Normal file
46
JenkinsfileEvaluate
Normal file
@ -0,0 +1,46 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(
|
||||
name: 'BUILD_SELECTOR',
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'A build to take the artifacts from'
|
||||
)
|
||||
string(
|
||||
name: 'EPOCHS',
|
||||
description: 'Number of epochs',
|
||||
defaultValue: '10'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Copy artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts(
|
||||
projectName: 'x1-training/main',
|
||||
selector: buildParameter('BUILD_SELECTOR'),
|
||||
target: './'
|
||||
)
|
||||
copyArtifacts(
|
||||
projectName: 'x1-create-dataset',
|
||||
selector: buildParameter('BUILD_SELECTOR'),
|
||||
target: './'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Save evaluation') {
|
||||
steps {
|
||||
script {
|
||||
sh 'ls -l'
|
||||
docker.image('docker-image').inside {
|
||||
sh 'ls -l'
|
||||
sh 'python3 ./evaluate.py'
|
||||
archiveArtifacts 'plot.png'
|
||||
archiveArtifacts 'results.csv'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
45
JenkinsfileTrain
Normal file
45
JenkinsfileTrain
Normal file
@ -0,0 +1,45 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(
|
||||
name: 'BUILD_SELECTOR',
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'A build to take the artifacts from'
|
||||
)
|
||||
string(
|
||||
name: 'EPOCHS',
|
||||
description: 'Number of epochs',
|
||||
defaultValue: '10'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Copy artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts(
|
||||
projectName: 'x1-create-dataset',
|
||||
selector: buildParameter('BUILD_SELECTOR'),
|
||||
target: './'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run training and save model') {
|
||||
steps {
|
||||
script {
|
||||
sh 'ls -l'
|
||||
docker.image('docker-image').inside {
|
||||
sh 'ls -l'
|
||||
sh 'python3 ./train.py'
|
||||
archiveArtifacts 'model.pt'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
build job: 'x1-evaluation.eg/main', wait: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user