• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • accurev-plugin
    • None
    • AccuRev plug-in v0.7.7;
      Jenkins 2.32.1

      Recently updated to version 0.7.7 of the Jenkins AccuRev plug-in.
      Unfortunately this seems to have broken the "Ignore parent changes" function.
      When this function is enabled, I get the following message in the polling log:

      Started on Jan 18, 2017 11:06:00 AM
      No workspace required.
      Running commands from folder "C:\workspace\Jenkins\jobs\Utilities\jobs\MultiProgram"
      [MultiProgram] $ "C:\Program Files\AccuRev\bin\accurev.exe" info -H accurev:5050
      Currently authenticated with Accurev server as 'CI', not logging in again.
      Stream not found or Accurev login failed.
      Done. Took 93 ms
      No changes

      When I disable this option, everything works fine. Note that it did work with the snapshot version I had while working on PR #37.

          [JENKINS-41165] Ignore parent changes not working since v0.7.7

          Joseph Petersen (old) added a comment - - edited

          I checked it, so far it works without variable reference

          edit: NVM
          My workspace was on the parent stream to the one I was testing
          So yes it works.

          Joseph Petersen (old) added a comment - - edited I checked it, so far it works without variable reference edit: NVM My workspace was on the parent stream to the one I was testing So yes it works.

          Arno Moonen added a comment -

          I just checked it and polling no longer results in an error when the snapshot version is installed.

          Arno Moonen added a comment - I just checked it and polling no longer results in an error when the snapshot version is installed.

          Started on 19-01-2017 08:17:00
          No workspace required.
          Running commands from folder "C:\Jenkins\jobs\accurev-plugin"
          Authenticating with Accurev server...
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" login -H sandbox:5050 bam ********
          Authentication completed successfully.
          ... expanded '$stream' to 'steammy'.
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H sandbox:5050 -fx -p potter -s steammy streams
          Checking transactions of type chstream, defcomp, mkstream, promote in stream [steammy]
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k chstream
          No transactions of type [chstream]
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k defcomp
          Last transaction of type [defcomp] is [id=225, date=Fri Feb 06 11:32:58 CET 2015, author=dreamy, action=defcomp, msg=]
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k mkstream
          Last transaction of type [mkstream] is [id=217, date=Fri Feb 06 11:29:20 CET 2015, author=dreamy, action=mkstream, msg=]
          [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k promote
          Last transaction of type [promote] is [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear]
          Last valid trans [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear]
          Done. Took 0,7 sec
          Changes found
          

          Joseph Petersen (old) added a comment - Started on 19-01-2017 08:17:00 No workspace required. Running commands from folder "C:\Jenkins\jobs\accurev-plugin" Authenticating with Accurev server... [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" login -H sandbox:5050 bam ******** Authentication completed successfully. ... expanded '$stream' to 'steammy' . [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H sandbox:5050 -fx -p potter -s steammy streams Checking transactions of type chstream, defcomp, mkstream, promote in stream [steammy] [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k chstream No transactions of type [chstream] [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k defcomp Last transaction of type [defcomp] is [id=225, date=Fri Feb 06 11:32:58 CET 2015, author=dreamy, action=defcomp, msg=] [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k mkstream Last transaction of type [mkstream] is [id=217, date=Fri Feb 06 11:29:20 CET 2015, author=dreamy, action=mkstream, msg=] [accurev-plugin] $ "C:\Program Files\AccuRev\bin\accurev.exe" hist -H sandbox:5050 -fx -p potter -s steammy -t now.1 -k promote Last transaction of type [promote] is [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear] Last valid trans [id=17351, date=Thu Jan 19 08:08:19 CET 2017, author=dreamy, action=promote, msg=pokeybear] Done. Took 0,7 sec Changes found

          I'll get it out asap then.

          Joseph Petersen (old) added a comment - I'll get it out asap then.

          Arno Moonen added a comment -

          That would be great. Thanks!

          Arno Moonen added a comment - That would be great. Thanks!

          Code changed in jenkins
          User: Joseph
          Path:
          src/main/java/hudson/plugins/accurev/AccurevPromoteTrigger.java
          src/main/java/hudson/plugins/accurev/AccurevSCM.java
          src/main/java/hudson/plugins/accurev/CheckForChanges.java
          src/main/java/hudson/plugins/accurev/cmd/ShowStreams.java
          src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java
          src/main/java/hudson/plugins/accurev/delegates/StreamDelegate.java
          src/main/java/hudson/plugins/accurev/delegates/WorkspaceDelegate.java
          http://jenkins-ci.org/commit/accurev-plugin/0efd3960d53704ee6f60ac950119baa80e5a45f7
          Log:
          JENKINS-41165 Fix for Ignore Parent (#39)

          Fixing Ignore Parent

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joseph Path: src/main/java/hudson/plugins/accurev/AccurevPromoteTrigger.java src/main/java/hudson/plugins/accurev/AccurevSCM.java src/main/java/hudson/plugins/accurev/CheckForChanges.java src/main/java/hudson/plugins/accurev/cmd/ShowStreams.java src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java src/main/java/hudson/plugins/accurev/delegates/StreamDelegate.java src/main/java/hudson/plugins/accurev/delegates/WorkspaceDelegate.java http://jenkins-ci.org/commit/accurev-plugin/0efd3960d53704ee6f60ac950119baa80e5a45f7 Log: JENKINS-41165 Fix for Ignore Parent (#39) Fixing Ignore Parent

          Fixed in release 0.7.8

          Joseph Petersen (old) added a comment - Fixed in release 0.7.8

          Arno Moonen added a comment -

          @casz: I'm running 0.7.11 now and it seems that the filter is broken again. I've promoted changes to files that are within the Sub-path defined in the AccuRev SCM configuration, however, a poll does not trigger the build.
          I've also tried with the Filter for Poll SCM option set to the same path, but with the same result.

          This is my last week at the client that uses AccuRev. Hopefully I will be able to find some time and get you some additional info.

          Arno Moonen added a comment - @ casz : I'm running 0.7.11 now and it seems that the filter is broken again. I've promoted changes to files that are within the Sub-path defined in the AccuRev SCM configuration, however, a poll does not trigger the build. I've also tried with the Filter for Poll SCM option set to the same path, but with the same result. This is my last week at the client that uses AccuRev. Hopefully I will be able to find some time and get you some additional info.

          arnom sadly who ever though it was a good idea to make sub-path as part of the filter when filter wasn't specified made it harder for themself

          Your Filter for Poll should be using simple wildcards.

          example
          sub-path: uncle/bob, Jenkinsfile
          Filter: unclue/bob/*, Jenkinsfile

          Joseph Petersen (old) added a comment - arnom sadly who ever though it was a good idea to make sub-path as part of the filter when filter wasn't specified made it harder for themself Your Filter for Poll should be using simple wildcards. example sub-path: uncle/bob, Jenkinsfile Filter: unclue/bob/*, Jenkinsfile

          Arno Moonen added a comment -

          Thanks, that does work. I'll update my templates.

          Arno Moonen added a comment - Thanks, that does work. I'll update my templates.

            jetersen Joseph Petersen
            arnom Arno Moonen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: