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

Plugin detects the wrong build as triggered occasionally

      This plugin occassionally makes a mistake in determining which build was triggered by it. This can cause some problems since the build will be triggered anyway, but this job can be marked as complete.

          [JENKINS-29222] Plugin detects the wrong build as triggered occasionally

          Steve Ramage added a comment -

          See the above tickets for how to do this properly. Note: there will be a pull request with these changes very soon.

          Steve Ramage added a comment - See the above tickets for how to do this properly. Note: there will be a pull request with these changes very soon.

          marlene cote added a comment -

          looks like the pull request was never fulfilled. this is a pretty bad problem for us. is there a workaround?

          marlene cote added a comment - looks like the pull request was never fulfilled. this is a pretty bad problem for us. is there a workaround?

          Steve Ramage added a comment -

          funeeldy mcote

          I think the plugin is abandoned. The pull request was never fulfilled because the solution I used didn't work on older versions of Jenkins, and I didn't feel like patching for old versions. I can point you to the repo on GitHub if you'd like where my changes were. I think I made a few.

          The older versions of Jenkins are like versions from 2014 or something.

          Steve Ramage added a comment - funeeldy mcote I think the plugin is abandoned. The pull request was never fulfilled because the solution I used didn't work on older versions of Jenkins, and I didn't feel like patching for old versions. I can point you to the repo on GitHub if you'd like where my changes were. I think I made a few. The older versions of Jenkins are like versions from 2014 or something.

          marlene cote added a comment -

          is there a different plugin that has the same functionality?

          marlene cote added a comment - is there a different plugin that has the same functionality?

          marlene cote added a comment -

          and can't you make it work with new versions of jenkins?

          marlene cote added a comment - and can't you make it work with new versions of jenkins?

          Steve Ramage added a comment -

          I don't know about a different plugin. I did write a fix that works with newer versions and that is what we have been using for 18 months. I just couldn't release it and patch it because it wasn't a perfect fix.

          Are you familiar with using maven?

          Another option is I can see what the Jenkins channel says about just changing the minimum supported version.

          Steve Ramage added a comment - I don't know about a different plugin. I did write a fix that works with newer versions and that is what we have been using for 18 months. I just couldn't release it and patch it because it wasn't a perfect fix. Are you familiar with using maven? Another option is I can see what the Jenkins channel says about just changing the minimum supported version.

          marlene cote added a comment -

          I am running the latest version of jenkins. the master is centos.

          marlene cote added a comment - I am running the latest version of jenkins. the master is centos.

          marlene cote added a comment -

          the master on the server which is kicking off the build on the remote jenkins is windows. the remote jenkins is centos
          but both are running the latest jenkins version

          marlene cote added a comment - the master on the server which is kicking off the build on the remote jenkins is windows. the remote jenkins is centos but both are running the latest jenkins version

          marlene cote added a comment -

          we want the fix anyway we can get it.

          marlene cote added a comment - we want the fix anyway we can get it.

          Steve Ramage added a comment -

          Ugh, for some reason the unit tests are failing on my machine, even if I delete every test. The repository for my fix is here: https://github.com/SJrX/parameterized-remote-trigger-plugin/commits/build-finding, and the branch is build-finding.

          If you download it, and run mvn -Dmaven.test.skip=true install it should produce a jar and hpi file, I think the hpi file is what you install manually.

          Steve Ramage added a comment - Ugh, for some reason the unit tests are failing on my machine, even if I delete every test. The repository for my fix is here: https://github.com/SJrX/parameterized-remote-trigger-plugin/commits/build-finding , and the branch is build-finding. If you download it, and run mvn -Dmaven.test.skip=true install it should produce a jar and hpi file, I think the hpi file is what you install manually.

          marlene cote added a comment -

          all the maven downloads I try are failing!!

          marlene cote added a comment - all the maven downloads I try are failing!!

          marlene cote added a comment -

          got maven.. but have never used it. do I need anything more than the command you gave me? it doesn't seem to be doing anything
          do I need to tell it what to build or just be in the top level directory with the pom.xml file?

          marlene cote added a comment - got maven.. but have never used it. do I need anything more than the command you gave me? it doesn't seem to be doing anything do I need to tell it what to build or just be in the top level directory with the pom.xml file?

          Steve Ramage added a comment -

          I think just be in the top level directory with the pom.xml file, run the command and then look in the build or output directory.

          Steve Ramage added a comment - I think just be in the top level directory with the pom.xml file, run the command and then look in the build or output directory.

          marlene cote added a comment -

          ty making progress

          marlene cote added a comment - ty making progress

          marlene cote added a comment -

          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 4.029 s
          [INFO] Finished at: 2017-01-06T13:13:29-05:00
          [INFO] Final Memory: 13M/32M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          5:compile (default-compile) on project Parameterized-Remote-Trigger: Fatal error
          compiling: tools.jar not found: C:\Program Files (x86)\Java\jre1.8.0_45\..\lib\
          tools.jar -> [Help 1]
          [ERROR]

          marlene cote added a comment - [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.029 s [INFO] Finished at: 2017-01-06T13:13:29-05:00 [INFO] Final Memory: 13M/32M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 5:compile (default-compile) on project Parameterized-Remote-Trigger: Fatal error compiling: tools.jar not found: C:\Program Files (x86)\Java\jre1.8.0_45\..\lib\ tools.jar -> [Help 1] [ERROR]

          marlene cote added a comment -

          this is actually at the top of the output.

          [INFO] Scanning for projects...
          [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.95 is missing,
          no dependency information available
          [WARNING] Failed to build parent project for org.jenkins-ci.plugins:Parameterize
          d-Remote-Trigger:hpi:2.2.1-SNAPSHOT
          [INFO]

          marlene cote added a comment - this is actually at the top of the output. [INFO] Scanning for projects... [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.95 is missing, no dependency information available [WARNING] Failed to build parent project for org.jenkins-ci.plugins:Parameterize d-Remote-Trigger:hpi:2.2.1-SNAPSHOT [INFO]

          Steve Ramage added a comment -

          Sadly I'm not a Maven expert, or even a Jenkins one, I just had to fix this issue a year and a bit ago, and had forgotten about this until this morning when I got an e-mail from this ticket

          The only thing I can recommend is maybe try: https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-CreatingaNewPlugin or if you want and would trust it I would offer to send you the build I made.

          Steve Ramage added a comment - Sadly I'm not a Maven expert, or even a Jenkins one, I just had to fix this issue a year and a bit ago, and had forgotten about this until this morning when I got an e-mail from this ticket The only thing I can recommend is maybe try: https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-CreatingaNewPlugin or if you want and would trust it I would offer to send you the build I made.

          marlene cote added a comment -

          got it to build!
          now to install it.

          marlene cote added a comment - got it to build! now to install it.

          marlene cote added a comment -

          I uploaded it to my test jenkins instance. will let you know if we see the problem again. Thank you very much for your time and efforts.

          marlene cote added a comment - I uploaded it to my test jenkins instance. will let you know if we see the problem again. Thank you very much for your time and efforts.

            morficus Maurice W.
            sramage Steve Ramage
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: