jenkins credentials param
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
4a3b8cf64d
commit
93687fcbae
@ -2,6 +2,18 @@ pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
}
|
||||
parameters{
|
||||
string(
|
||||
defaultValue: 's444417',
|
||||
description: 'JENKINS username',
|
||||
name: 'JENKINS_USERNAME'
|
||||
)
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'JENKINS password',
|
||||
name: 'JENKINS_KEY'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Copy prev build artifact') {
|
||||
steps {
|
||||
@ -22,7 +34,7 @@ pipeline {
|
||||
}
|
||||
stage('Copy model') {
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
@ -17,15 +17,15 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
options {
|
||||
copyArtifactPermission('s444417-evaluation');
|
||||
}
|
||||
stage('Starting eval job') {
|
||||
steps {
|
||||
build job: 's444417-evaluation/master', wait: false
|
||||
}
|
||||
}
|
||||
}
|
||||
options {
|
||||
copyArtifactPermission('s444417-evaluation');
|
||||
}
|
||||
post {
|
||||
always {
|
||||
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
|
Loading…
Reference in New Issue
Block a user