-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating platform jobs for pluggable scm
- Loading branch information
dharmanshu.singh
committed
Jan 24, 2017
1 parent
31d1bc9
commit 4e00f6f
Showing
3 changed files
with
113 additions
and
57 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
bootstrap/Platform_Management/Setup_Pluggable_Library.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
keepSystemVariables() | ||
} | ||
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") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters