File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ component {
6565 buildID = createUUID (),
6666 branch = " development"
6767 ){
68+ // If branch == development, then we are building a snapshot
69+ if ( branch == " development" ) {
70+ arguments .version = arguments .version & " -snapshot" ;
71+ }
72+
6873 // Create project mapping
6974 fileSystemUtil .createMapping ( arguments .projectName , variables .cwd );
7075
@@ -167,7 +172,7 @@ component {
167172 .params (
168173 path = " /#variables .projectBuildDir #/**" ,
169174 token = ( arguments .branch == " master" ? " @build.number@" : " +@build.number@" ),
170- replacement = ( arguments .branch == " master" ? arguments .buildID : " -snapshot " )
175+ replacement = ( arguments .branch == " master" ? arguments .buildID : " " )
171176 )
172177 .run ();
173178
You can’t perform that action at this time.
0 commit comments