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

Unable to commit release version on Git master branch from Artifactory Release Staging

    Details

    • Similar Issues:

      Description

      We are unable to commit a release on our git repository by using the Jenkins artifactory plugin - Release Management.

      We were previously using the artifactory release staging link to build and commit our release on git.

      If we try to commit the release from the Jenkins slave, we got the following exception :

      [RELEASE] Committing release version on branch ''
      [RELEASE] Creating tag 'project-1.0.4'
      [RELEASE] Pushing branch '' to 'git@gitlab.domain.com:project-group/project.git'
      Failure in post build SCM action: remote file operation failed: /jenkins/workspace/build-project at hudson.remoting.Channel@3a2b6ce6:build-01

      So, we tried to commit from the master node:

      [RELEASE] Committing release version on branch ''
      [RELEASE] Creating tag 'project-1.0.4'
      [RELEASE] Pushing branch '' to 'git@gitlab.domain.com:project-group/project.git'
      Failure in post build SCM action: Failed to push: Command "push git@gitlab.domain.com:project-group/project.git refs/heads/" returned status code 128:
      stdout:
      stderr: fatal: remote part of refspec is not a valid name in refs/heads/

      Seems that the plugin can't commit to the master branch (why an empty branch?).

      You can find an attached image for the artifactory release staging configuration.

        Attachments

          Activity

          alapenna A Lapenna created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Assignee yossis [ yossis ] Eyal Ben Moshe [ eyalbe ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 151689 ] JNJira + In-Review [ 178034 ]

            People

            • Assignee:
              eyalbe Eyal Ben Moshe
              Reporter:
              alapenna A Lapenna
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: