Unable to Perform Maven Release build with Github on Jenkins 2.7.X

245 views
Skip to first unread message

Mahendra

unread,
Jan 23, 2017, 1:59:46 PM1/23/17
to Jenkins Users
Hi All,
I am trying to perform release build on github via Jenkins 2.7.2 is below two ways. Facing the differnet ERROR each time

Case1; I am using maven relelease plugin (m2 plugin). My githbu authentication is ssh based authentication. the snapshot build is successful without any issue.
           To have release build, i have added scm tags in the pom file. Now when I am performing maven release build, it is failing on release step saying that unable to perform git clone command.
           Generally we see such issue when the authentication with github is not well. In my case, the same jenkins snapshot build works fine which means the username given in jenkins configuration is fine.
           when it comes for release builds, it fails like that. 
            Do we need to specific again ssh keys in order to perform release build on github?


Case2: I am trying to releease using Artifactory Release management plugin
           Again, the snapshot build works fine, but when I perform Artifactory staging release. It fails with below error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project abc: You don't have a SNAPSHOT project in the reactor projects list. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project abc: You don't have a SNAPSHOT project in the reactor projects list.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606) 
at org.codehaus.plexus.classworlds.launcher.Launcher.lau 

Indra Gunawan (ingunawa)

unread,
Jan 23, 2017, 2:05:18 PM1/23/17
to jenkins...@googlegroups.com

Look at the error “You don't have a SNAPSHOT project in the reactor projects list. -> [Help 1]

 

Your pom does not have SNAPSHOT version so nothing for release plugin to convert to release version.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cf955f95-4a9d-45fb-831b-7eb36e1d0d3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mahendra

unread,
Jan 23, 2017, 2:50:59 PM1/23/17
to Jenkins Users, ingu...@cisco.com
Dont know why this error is coming because snapshot build is successful before triggering the release build. Not sure where it is looking for snapshot

Mahendra

unread,
Jan 23, 2017, 2:52:31 PM1/23/17
to Jenkins Users, ingu...@cisco.com
Evne the pom has the SNAPSHOT version in it
Reply all
Reply to author
Forward
0 new messages