• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • unleash-plugin
    • None

      i'm getting the following exception using the 2.1.1 version of the maven plugin and the 1.2.1 of the jenkins plugin and i'm getting the following error:

      Caused by: java.lang.IllegalStateException: No from revision set (start revision of the reversion)!
      at com.google.common.base.Preconditions.checkState(Preconditions.java:174)
      at com.itemis.maven.plugins.unleash.scm.requests.RevertCommitsRequest$Builder.build(RevertCommitsRequest.java:187)
      at com.itemis.maven.plugins.unleash.steps.actions.SetNextDevVersion.rollback(SetNextDevVersion.java:129)
      ... 42 more
      

      i'm about to start looking into adding the 'release as a post build step' functionality i mentioned in JENKINS-37401 and will look at this as well, but in case you have any ideas right away...

          [JENKINS-37903] IllegalStateException thrown during release

          Jae Gangemi added a comment -

          ok - it looks like this is an issue w/ the way jenkins checks out projects w/ a detached HEAD. i am setting the "check out to a specific local branch" option, but that does not seem to have an effect.

          i'll file a bug in against the maven plugin for this as i can reproduce this locally using the same steps jenkins uses to check out the project.

          Jae Gangemi added a comment - ok - it looks like this is an issue w/ the way jenkins checks out projects w/ a detached HEAD . i am setting the "check out to a specific local branch" option, but that does not seem to have an effect. i'll file a bug in against the maven plugin for this as i can reproduce this locally using the same steps jenkins uses to check out the project.

          Please use git provider in version 2.0.1+ which contains a fix for the following bug: checking out a detached head causes errors

          Additionally you will need to configure the additional behavior Check out to specific local branch for the Jenkins git connector. Please leave empty the name of the local branch which causes the connector to name the local branch as the remote one.

          Stanley Hillner added a comment - Please use git provider in version 2.0.1+ which contains a fix for the following bug: checking out a detached head causes errors Additionally you will need to configure the additional behavior Check out to specific local branch for the Jenkins git connector. Please leave empty the name of the local branch which causes the connector to name the local branch as the remote one.

            shillner Stanley Hillner
            jgangemi Jae Gangemi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: