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 

-- 
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-users+unsubscr...@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.

Reply via email to