Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45655

Unleash plugin unable to push locally created tag to remote / not authorised with jgit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • unleash-plugin
    • None

      Created a simple maven project, using Unleash plugin, I got this error when Jenkins try to push the Git tag created locally.
      It seems jgit is not able to provide the SCM credentials correctly passed in parameters ( I have the correct rights on my repository).

      [ERROR] Failed to execute goal com.itemis.maven.plugins:unleash-maven-plugin:1.0.0:perform (default-cli) on project my-app: Execution default-cli of goal com.itemis.maven.plugins:unleash-maven-plugin:1.0.0:perform failed: Unable to push locally created tag 'v1.3.2' to remote 'originhttps://myGitlabRepository.git+'. https://myGitlabRepository.git: not authorized -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.itemis.maven.plugins:unleash-maven-plugin:1.0.0:perform (default-cli) on project my-app: Execution default-cli of goal com.itemis.maven.plugins:unleash-maven-plugin:1.0.0:perform failed: Unable to push locally created tag 'v1.3.2' to remote 'origin[

      https://myGitlabRepository.git

      ]+'. 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal com.itemis.maven.plugins:unleash-maven-plugin:1.0.0:perform failed: Unable to push locally created tag 'v1.3.2' to remote 'origin[

      https://myGitlabRepository.git

      ]+'. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 31 more Caused by: com.itemis.maven.plugins.unleash.scm.ScmException: Unable to push locally created tag 'v1.3.2' to remote 'origin[

      https://myGitlabRepository.git

      ]+'. at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.tag(ScmProviderGit.java:547) at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute(TagScm.java:117) at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep(WorkflowExecutor.java:131) at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute(WorkflowExecutor.java:114) at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute(AbstractCDIMojo.java:207) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 32 more Caused by: org.eclipse.jgit.api.errors.TransportException:

      https://myGitlabRepository.git

      : not authorized at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:164) at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.tag(ScmProviderGit.java:544) ... 37 more Caused by: org.eclipse.jgit.errors.TransportException:

      https://myGitlabRepository.git

      : not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:490) at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:379) at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:155) at org.eclipse.jgit.transport.Transport.push(Transport.java:1250) at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)

            alexis_havez alexis havez
            alexis_havez alexis havez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: