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 -

          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: