Skip to content

Commit

Permalink
[JENKINS-16620] Fixed null exception in project creator
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgarnet committed Feb 5, 2013
1 parent 2c73205 commit 3225f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/net/praqma/hudson/test/CCUCMRule.java
Expand Up @@ -116,7 +116,7 @@ public Project getProject() throws IOException {

// boolean createBaseline, String nameTemplate, boolean forceDeliver, boolean recommend, boolean makeTag, boolean setDescription
//CCUCMScm scm = new CCUCMScm( component, "INITIAL", "ALL", false, type, stream, "successful", createBaseline, "[project]_build_[number]", forceDeliver, recommend, tag, description, "jenkins" );
CCUCMScm scm = new CCUCMScm( component, promotionLevel.name(), "ALL", false, type.name(), stream, "successful", createBaseline, template, forceDeliver, recommend, tag, description, "" );
CCUCMScm scm = new CCUCMScm( component, ( promotionLevel != null ? promotionLevel.name() : "ANY" ), "ALL", false, type.name(), stream, "successful", createBaseline, template, forceDeliver, recommend, tag, description, "" );
project.setScm( scm );

return project;
Expand Down

0 comments on commit 3225f6d

Please sign in to comment.