jenkins credentials param
Some checks failed
s444417-training/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-05-04 15:54:17 +02:00
parent 4a3b8cf64d
commit 93687fcbae
2 changed files with 16 additions and 4 deletions

View File

@ -2,6 +2,18 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters{
string(
defaultValue: 's444417',
description: 'JENKINS username',
name: 'JENKINS_USERNAME'
)
password(
defaultValue: '',
description: 'JENKINS password',
name: 'JENKINS_KEY'
)
}
stages { stages {
stage('Copy prev build artifact') { stage('Copy prev build artifact') {
steps { steps {
@ -22,7 +34,7 @@ pipeline {
} }
stage('Copy model') { stage('Copy model') {
steps { steps {
sh "wget https://tzietkiewicz.vm.wmi.amu.edu.pl:8080/job/s444417-training/job/master/lastSuccessfulBuild/artifact/*zip*/archive.zip -P ." sh "wget --auth-no-challenge --http-user=${params.JENKINS_USERNAME} --http-password=${params.JENKINS_KEY} https://tzietkiewicz.vm.wmi.amu.edu.pl:8080/job/s444417-training/job/master/lastSuccessfulBuild/artifact/*zip*/archive.zip -P ."
sh "unzip archive.zip" sh "unzip archive.zip"
} }
} }

View File

@ -17,15 +17,15 @@ pipeline {
} }
} }
} }
options {
copyArtifactPermission('s444417-evaluation');
}
stage('Starting eval job') { stage('Starting eval job') {
steps { steps {
build job: 's444417-evaluation/master', wait: false build job: 's444417-evaluation/master', wait: false
} }
} }
} }
options {
copyArtifactPermission('s444417-evaluation');
}
post { post {
always { always {
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'