Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating platform jobs for pluggable scm #30

Merged
merged 10 commits into from
Mar 9, 2017
3 changes: 3 additions & 0 deletions bootstrap/Platform_Management/Job_Runner.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ build job: 'Platform_Management/Load_Cartridge_List'

// Setup the Gerrit ACL
build job: 'Platform_Management/Setup_Gerrit'

// Setup the Pluggable Library
build job: 'Platform_Management/Setup_Pluggable_Library'
''')
sandbox()
}
Expand Down
39 changes: 39 additions & 0 deletions bootstrap/Platform_Management/Setup_Pluggable_Library.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Constants
def pluggableGitURL = "https://github.com/Accenture/adop-pluggable-scm"

def platformManagementFolderName= "/Platform_Management"
def platformManagementFolder = folder(platformManagementFolderName) { displayName('Platform Management') }

// Jobs
def setupPluggable = freeStyleJob(platformManagementFolderName + "/Setup_Pluggable_Library")

// Setup setup_cartridge
setupPluggable.with{
environmentVariables {
keepBuildVariables(true)
keepSystemVariables(true)
}
wrappers {
preBuildCleanup()
}
steps {
shell('''#!/bin/bash -ex

echo "Extracting Pluggable library to additonal classpath location: ${PLUGGABLE_SCM_PROVIDER_PATH}"
cp -r src/main/groovy/pluggable/ ${PLUGGABLE_SCM_PROVIDER_PATH}
echo "******************"

echo "Library contents: "
ls ${PLUGGABLE_SCM_PROVIDER_PATH}pluggable/scm/
''')
}
scm {
git {
remote {
name("origin")
url("${pluggableGitURL}")
}
branch("*/master")
}
}
}
Loading