Git and build parametrs in eval from train.
This commit is contained in:
parent
6bbc314728
commit
dfe8074450
@ -27,3 +27,5 @@ COPY ./create_dataset.py ./
|
||||
RUN chmod +x create_dataset.py
|
||||
COPY ./evaluation.py ./
|
||||
RUN chmod +x evaluation.py
|
||||
COPY ./plot.py ./
|
||||
RUN chmod +x plot.py
|
||||
|
@ -1,14 +1,23 @@
|
||||
pipeline {
|
||||
agent any
|
||||
triggers {
|
||||
upstream(upstreamProjects: "s426206-train",
|
||||
threshold: hudson.model.Result.SUCCESS)
|
||||
}
|
||||
// triggers {
|
||||
// upstream(upstreamProjects: "s426206-train/master",
|
||||
// threshold: hudson.model.Result.SUCCESS)
|
||||
// }
|
||||
parameters {
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
description: 'Which build to use for copying artifacts for training',
|
||||
name: 'BUILD_SELECTOR_TRAINING')
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts for dataset',
|
||||
name: 'BUILD_SELECTOR_DATASET')
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts for evaluation',
|
||||
name: 'BUILD_SELECTOR_EVALUATION')
|
||||
gitParameter branch: '', branchFilter: '.*', defaultValue: 'master', description: '', name: 'BRANCH', quickFilterEnabled: false, selectedValue: 'NONE', sortMode: 'NONE', tagFilter: '*', type: 'PT_BRANCH'
|
||||
}
|
||||
stages {
|
||||
stage('checkout') {
|
||||
@ -18,9 +27,9 @@ pipeline {
|
||||
}
|
||||
stage('Copy artifact') {
|
||||
steps {
|
||||
copyArtifacts filter: 'model.pt', fingerprintArtifacts: false, projectName: 's426206-training/master', selector: buildParameter('BUILD_SELECTOR')
|
||||
copyArtifacts filter: 'val_dataset.pt', fingerprintArtifacts: false, projectName: 's426206-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
copyArtifacts filter: 'metrics.tsv', fingerprintArtifacts: false, optional: true, projectName: 's426206-evaluation/master', selector: buildParameter('BUILD_SELECTOR')
|
||||
copyArtifacts filter: 'model.pt', fingerprintArtifacts: false, projectName: 's426206-training/${params.BRANCH}', selector: buildParameter('BUILD_SELECTOR_TRAINING')
|
||||
copyArtifacts filter: 'val_dataset.pt', fingerprintArtifacts: false, projectName: 's426206-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET')
|
||||
copyArtifacts filter: 'metrics.tsv', fingerprintArtifacts: false, optional: true, projectName: 's426206-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION')
|
||||
}
|
||||
}
|
||||
stage('docker') {
|
||||
|
@ -6,16 +6,15 @@ pipeline {
|
||||
}
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: '',
|
||||
description: 'Parametry trenowania.',
|
||||
name: 'PARAMETRY',
|
||||
trim: false
|
||||
)
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
}
|
||||
defaultValue: '',
|
||||
description: 'Parametry trenowania.',
|
||||
name: 'PARAMETRY',
|
||||
trim: false)
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
stage('checkout') {
|
||||
steps {
|
||||
@ -54,7 +53,7 @@ pipeline {
|
||||
subject: 's426206 train',
|
||||
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||
//Uruchamianie innego zadania
|
||||
//build job: 's426206-evaluation/master', [string(name: 'BUILD_SELECTOR', value: '<StatusBuildSelector plugin="copyartifact@1.46"/>')]
|
||||
build job: 's426206-evaluation/master', [string(name: 'BUILD_SELECTOR', value: '<StatusBuildSelector plugin="copyartifact@1.46"/>')]
|
||||
|
||||
}
|
||||
unstable {
|
||||
|
Loading…
Reference in New Issue
Block a user