Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-17341] NPE after JENKINS-3265 fix.
- Loading branch information
Showing
7 changed files
with
158 additions
and
0 deletions.
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
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
1 change: 1 addition & 0 deletions
1
...t/resources/hudson/plugins/promoted_builds/ConfigurationRoundtripTest/testLoad/config.xml
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 @@ | ||
<hudson/> |
51 changes: 51 additions & 0 deletions
51
...ed_builds/ConfigurationRoundtripTest/testLoad/jobs/j/builds/2012-10-08_10-29-01/build.xml
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,51 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<build> | ||
<actions> | ||
<hudson.model.CauseAction> | ||
<causes> | ||
<hudson.model.Cause_-UserIdCause/> | ||
</causes> | ||
</hudson.model.CauseAction> | ||
<hudson.plugins.promoted__builds.PromotedBuildAction> | ||
<owner class="build" reference="../../.."/> | ||
<statuses> | ||
<hudson.plugins.promoted__builds.Status> | ||
<name>OK</name> | ||
<badges> | ||
<hudson.plugins.promoted__builds.conditions.ManualCondition_-Badge> | ||
<authenticationName>anonymous</authenticationName> | ||
<values> | ||
<hudson.model.StringParameterValue> | ||
<name>extension</name> | ||
<description>File ext for artifact.</description> | ||
<value>stuff</value> | ||
</hudson.model.StringParameterValue> | ||
</values> | ||
</hudson.plugins.promoted__builds.conditions.ManualCondition_-Badge> | ||
</badges> | ||
<timestamp> | ||
<time>1349706611025</time> | ||
<timezone>America/New_York</timezone> | ||
</timestamp> | ||
<promotion>1</promotion> | ||
<promotionAttempts> | ||
<int>1</int> | ||
</promotionAttempts> | ||
</hudson.plugins.promoted__builds.Status> | ||
</statuses> | ||
</hudson.plugins.promoted__builds.PromotedBuildAction> | ||
<hudson.plugins.promoted__builds.conditions.ManualCondition_-ManualApproval> | ||
<name>OK</name> | ||
<badge reference="../../hudson.plugins.promoted__builds.PromotedBuildAction/statuses/hudson.plugins.promoted__builds.Status/badges/hudson.plugins.promoted__builds.conditions.ManualCondition_-Badge"/> | ||
</hudson.plugins.promoted__builds.conditions.ManualCondition_-ManualApproval> | ||
</actions> | ||
<number>2</number> | ||
<result>SUCCESS</result> | ||
<duration>39</duration> | ||
<charset>UTF-8</charset> | ||
<keepLog>true</keepLog> | ||
<builtOn></builtOn> | ||
<hudsonVersion>1.448</hudsonVersion> | ||
<scm class="hudson.scm.NullChangeLogParser"/> | ||
<culprits/> | ||
</build> |
38 changes: 38 additions & 0 deletions
38
...rces/hudson/plugins/promoted_builds/ConfigurationRoundtripTest/testLoad/jobs/j/config.xml
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,38 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description></description> | ||
<logRotator> | ||
<daysToKeep>-1</daysToKeep> | ||
<numToKeep>1</numToKeep> | ||
<artifactDaysToKeep>-1</artifactDaysToKeep> | ||
<artifactNumToKeep>-1</artifactNumToKeep> | ||
</logRotator> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<hudson.plugins.promoted__builds.JobPropertyImpl> | ||
<activeProcessNames> | ||
<string>OK</string> | ||
</activeProcessNames> | ||
</hudson.plugins.promoted__builds.JobPropertyImpl> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers class="vector"/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command>echo $BUILD_NUMBER > build.txt</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.tasks.ArtifactArchiver> | ||
<artifacts>build.txt</artifacts> | ||
<latestOnly>false</latestOnly> | ||
</hudson.tasks.ArtifactArchiver> | ||
</publishers> | ||
<buildWrappers/> | ||
</project> |
18 changes: 18 additions & 0 deletions
18
...igurationRoundtripTest/testLoad/jobs/j/promotions/OK/builds/2012-10-08_10-30-11/build.xml
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,18 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<hudson.plugins.promoted__builds.Promotion> | ||
<actions> | ||
<hudson.plugins.promoted__builds.PromotionTargetAction> | ||
<jobName>j</jobName> | ||
<number>2</number> | ||
</hudson.plugins.promoted__builds.PromotionTargetAction> | ||
</actions> | ||
<number>1</number> | ||
<result>SUCCESS</result> | ||
<duration>109</duration> | ||
<charset>UTF-8</charset> | ||
<keepLog>false</keepLog> | ||
<builtOn></builtOn> | ||
<hudsonVersion>1.448</hudsonVersion> | ||
<scm class="hudson.scm.NullChangeLogParser"/> | ||
<culprits/> | ||
</hudson.plugins.promoted__builds.Promotion> |
35 changes: 35 additions & 0 deletions
35
...ugins/promoted_builds/ConfigurationRoundtripTest/testLoad/jobs/j/promotions/OK/config.xml
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,35 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<hudson.plugins.promoted__builds.PromotionProcess> | ||
<keepDependencies>false</keepDependencies> | ||
<properties/> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<canRoam>false</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers class="vector"/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<conditions> | ||
<hudson.plugins.promoted__builds.conditions.ManualCondition> | ||
<users></users> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>extension</name> | ||
<description>File ext for artifact.</description> | ||
<defaultValue>txt</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.plugins.promoted__builds.conditions.ManualCondition> | ||
</conditions> | ||
<icon>star-gold</icon> | ||
<buildSteps> | ||
<hudson.plugins.promoted__builds.KeepBuildForeverAction/> | ||
<hudson.tasks.Shell> | ||
<command>cp build.txt promoted.$extension</command> | ||
</hudson.tasks.Shell> | ||
<hudson.tasks.ArtifactArchiver> | ||
<artifacts>promoted.*</artifacts> | ||
<latestOnly>false</latestOnly> | ||
</hudson.tasks.ArtifactArchiver> | ||
</buildSteps> | ||
</hudson.plugins.promoted__builds.PromotionProcess> |