Skip to content

Commit

Permalink
Updating platform jobs to checkout env var
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdgriffin committed Jan 12, 2017
1 parent 53a2fe8 commit a35a0ea
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions bootstrap/Platform_Management/Load_Cartridge_List.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def platformManagementFolder = folder(platformManagementFolderName) { displayNam

// Jobs
def loadCartridgeJob = freeStyleJob(platformManagementFolderName + "/Load_Cartridge_List")

// Setup setup_cartridge
loadCartridgeJob.with{
wrappers {
Expand Down Expand Up @@ -66,8 +66,8 @@ done < ${WORKSPACE}/platform-management/cartridges.txt''')
url("${platformToolsGitURL}")
credentials("adop-jenkins-master")
}
branch("*/master")
branch('${ADOP_PLATFORM_MANAGEMENT_VERSION:-*/master}')
relativeTargetDir('platform-management')
}
}
}
}
8 changes: 4 additions & 4 deletions bootstrap/Platform_Management/Setup_Gerrit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def platformManagementFolder = folder(platformManagementFolderName) { displayNam

// Jobs
def setupGerritJob = freeStyleJob(platformManagementFolderName + "/Setup_Gerrit")

// Setup setup_gerrit
setupGerritJob.with{
wrappers {
Expand All @@ -19,7 +19,7 @@ setupGerritJob.with{
steps {
shell('''#!/bin/bash -ex
# Fetch All-Projects
# Fetch All-Projects
cd ${WORKSPACE}
git clone ssh://jenkins@gerrit:29418/All-Projects
cd ${WORKSPACE}/All-Projects
Expand Down Expand Up @@ -53,8 +53,8 @@ fi''')
url("${platformToolsGitURL}")
credentials("adop-jenkins-master")
}
branch("*/master")
branch('${ADOP_PLATFORM_MANAGEMENT_VERSION:-*/master}')
relativeTargetDir('platform-management')
}
}
}
}
6 changes: 3 additions & 3 deletions bootstrap/Workspace_Management/Generate_Workspace.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def workspaceManagementFolder = folder(workspaceManagementFolderName) { displayN

// Jobs
def generateWorkspaceJob = freeStyleJob(workspaceManagementFolderName + "/Generate_Workspace")

// Setup generateWorkspaceJob
generateWorkspaceJob.with{
parameters{
Expand Down Expand Up @@ -72,7 +72,7 @@ done''')
url("${platformToolsGitURL}")
credentials("adop-jenkins-master")
}
branch("*/master")
branch('${ADOP_PLATFORM_MANAGEMENT_VERSION:-*/master}')
}
}
}
}
2 changes: 1 addition & 1 deletion projects/jobs/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def cartridgeFolder = folder(cartridgeFolderName) {
url("${platformToolsGitUrl}")
credentials("adop-jenkins-master")
}
branch("*/master")
branch('${ADOP_PLATFORM_MANAGEMENT_VERSION:-*/master}')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion workspaces/jobs/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ source ${WORKSPACE}/projects/gerrit/configure.sh -r permissions-with-review''')
url("${platformToolsGitURL}")
credentials("adop-jenkins-master")
}
branch("*/master")
branch('${ADOP_PLATFORM_MANAGEMENT_VERSION:-*/master}')
}
}
}

0 comments on commit a35a0ea

Please sign in to comment.