-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from nickdgriffin/feature/plat-man-pr11
Load_Platform: Using ADOP_PLATFORM_MANAGEMENT_VERSION if specified
- Loading branch information
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -23,6 +23,16 @@ | |
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
<de.pellepelster.jenkins.walldisplay.WallDisplayJobProperty plugin="[email protected]"/> | ||
<EnvInjectJobProperty plugin="[email protected]"> | ||
<info> | ||
<loadFilesFromMaster>false</loadFilesFromMaster> | ||
</info> | ||
<on>true</on> | ||
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables> | ||
<keepBuildVariables>true</keepBuildVariables> | ||
<overrideBuildParameters>false</overrideBuildParameters> | ||
<contributors/> | ||
</EnvInjectJobProperty> | ||
</properties> | ||
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]"> | ||
<configVersion>2</configVersion> | ||
|
@@ -81,7 +91,15 @@ fi | |
# Setup remote & populate | ||
git remote add adop ssh://jenkins@gerrit:29418/"${target_repo_name}" | ||
git fetch adop | ||
git push adop +refs/remotes/origin/*:refs/heads/*</command> | ||
git push adop +refs/remotes/origin/*:refs/heads/* | ||
|
||
# If a version has been specified, let's switch to it | ||
if [ ! -z "${ADOP_PLATFORM_MANAGEMENT_VERSION}" ] && [[ "${ADOP_PLATFORM_MANAGEMENT_VERSION}" =~ ^[a-fA-F0-9]{8,40}$ ]] && [ "$(git cat-file -t "${ADOP_PLATFORM_MANAGEMENT_VERSION}")" = "commit" ]; then | ||
echo "INFO - Checking out specified ADOP_PLATFORM_MANAGEMENT_VERSION '${ADOP_PLATFORM_MANAGEMENT_VERSION}'" | ||
git checkout "${ADOP_PLATFORM_MANAGEMENT_VERSION}" | ||
else | ||
echo "WARNING - ADOP_PLATFORM_MANAGEMENT_VERSION is set to '${ADOP_PLATFORM_MANAGEMENT_VERSION}' which is not a valid Git commit hash - defaulting to 'master'" | ||
fi</command> | ||
</hudson.tasks.Shell> | ||
<javaposse.jobdsl.plugin.ExecuteDslScripts plugin="[email protected]"> | ||
<targets>bootstrap/**/*.groovy</targets> | ||
|