workspace jenkins to _sd_
This commit is contained in:
parent
b8b2bfbd55
commit
c1447b3d15
|
|
@ -10,8 +10,11 @@ def projects = [
|
||||||
def programs = "/_sd_/_programs_"
|
def programs = "/_sd_/_programs_"
|
||||||
|
|
||||||
def git_take(projects, git_remote) {
|
def git_take(projects, git_remote) {
|
||||||
withCredentials([usernamePassword(credentialsId: '9e8daaa4-8c14-41ae-947b-65ba47965dfe', usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS')]) {
|
withCredentials([usernamePassword(
|
||||||
dir(programs) {
|
credentialsId: '9e8daaa4-8c14-41ae-947b-65ba47965dfe',
|
||||||
|
usernameVariable: 'GIT_USER',
|
||||||
|
passwordVariable: 'GIT_PASS')]) {
|
||||||
|
|
||||||
projects.each { project ->
|
projects.each { project ->
|
||||||
if (fileExists(project)) {
|
if (fileExists(project)) {
|
||||||
dir(project) {
|
dir(project) {
|
||||||
|
|
@ -38,11 +41,14 @@ def git_take(projects, git_remote) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
any
|
||||||
|
customWorkspace programs
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Update from git') {
|
stage('Update from git') {
|
||||||
steps {
|
steps {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue