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

Regex match does not update the Job #no with Github PR

      As you can see in the below Jobs console logs exert, the regex matched by the description-setter plugin does not update the Job log URL once the job is completed. Not sure, but this likely happens because there is a Github PR #no abve the job no desc.

      08:54:41 #######################################################
      08:54:41 Logs upload to S3 complete.
      08:54:41 S3 build logs: <a href="https://s3-logs.zowe.org/logs/production/vex-sjc-zowe-jenkins-prod-1/ci-management-jjb-verify/28/"></a>
      08:54:41 [ci-management-jjb-verify] $ /bin/bash /tmp/jenkins9070142025135512232.sh
      08:54:41 [description-setter] Description set: S3 build logs: <a href="https://s3-logs.zowe.org/logs/production/vex-sjc-zowe-jenkins-prod-1/ci-management-jjb-verify/28/"></a>
      08:54:42 [WS-CLEANUP] Deleting project workspace...
      08:54:43 [WS-CLEANUP] done
      08:54:43 Finished: SUCCESS
      

      Regex used to match the URL:

      https://regex101.com/r/ZfaB3l/2

      job logs:

      https://s3-logs.zowe.org/logs/production/vex-sjc-zowe-jenkins-prod-1/ci-management-jjb-verify/28/

      https://jenkins.zowe.org/job/ci-management-jjb-verify/

       

          [JENKINS-64190] Regex match does not update the Job #no with Github PR

          Anil Belur added a comment -

          Anil Belur added a comment - Reproducible with description setter plugin 1.10

          Anil Belur added a comment -

          Any workaround for this issue in question? 

          Anil Belur added a comment - Any workaround for this issue in question? 

          Anil Belur added a comment -

          huybrechts Is there a workaround or an fix available for this yet. TIA 

          Anil Belur added a comment - huybrechts  Is there a workaround or an fix available for this yet. TIA 

          Anil Belur added a comment -

          Tried building the latest version of the src, the last release of the plugin was about 6 years ago and the build on Java6. Since the lots of dependencies have changed. 

          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar (0 B at 0 B/s)
          [debug] execute contextualize
          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [INFO] Copying 25 resources
          [INFO] 
          [INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ description-setter ---
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom (3.4 kB at 5.7 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.pom (778 B at 1.6 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler/1.9/plexus-compiler-1.9.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler/1.9/plexus-compiler-1.9.pom (3.9 kB at 8.1 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom (2.8 kB at 5.9 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.pom (690 B at 1.5 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.pom (686 B at 1.5 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compilers/1.9/plexus-compilers-1.9.pom
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compilers/1.9/plexus-compilers-1.9.pom (1.3 kB at 2.7 kB/s)
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.jar
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.jar
          Downloading from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.jar
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.jar (4.5 kB at 9.3 kB/s)
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.jar (14 kB at 28 kB/s)
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.jar (21 kB at 42 kB/s)
          Downloaded from repo.jenkins-ci.org: http://repo.jenkins-ci.org/public/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar (33 kB at 60 kB/s)
          [INFO] Compiling 6 source files to /home/abelur/git/description-setter-plugin/target/classes
          [INFO] -------------------------------------------------------------
          [ERROR] COMPILATION ERROR : 
          [INFO] -------------------------------------------------------------
          [ERROR] error: Source option 5 is no longer supported. Use 6 or later.
          [ERROR] error: Target option 1.5 is no longer supported. Use 1.6 or later.
          [INFO] 2 errors 
          [INFO] -------------------------------------------------------------
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time:  01:41 min
          [INFO] Finished at: 2021-05-06T13:06:59+10:00
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project description-setter: Compilation failure: Compilation failure: 
          [ERROR] error: Source option 5 is no longer supported. Use 6 or later.
          [ERROR] error: Target option 1.5 is no longer supported. Use 1.6 or later.
          [ERROR] -> [Help 1]
          
          

          Anil Belur added a comment - Tried building the latest version of the src, the last release of the plugin was about 6 years ago and the build on Java6. Since the lots of dependencies have changed.  Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar (0 B at 0 B/s) [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-compiler-plugin:2.5:compile ( default -compile) @ description-setter --- Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom (3.4 kB at 5.7 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.pom (778 B at 1.6 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler/1.9/plexus-compiler-1.9.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler/1.9/plexus-compiler-1.9.pom (3.9 kB at 8.1 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom (2.8 kB at 5.9 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.pom (690 B at 1.5 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.pom (686 B at 1.5 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compilers/1.9/plexus-compilers-1.9.pom Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compilers/1.9/plexus-compilers-1.9.pom (1.3 kB at 2.7 kB/s) Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.jar Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.jar Downloading from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.jar Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-manager/1.9/plexus-compiler-manager-1.9.jar (4.5 kB at 9.3 kB/s) Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.jar (14 kB at 28 kB/s) Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/codehaus/plexus/plexus-compiler-api/1.9/plexus-compiler-api-1.9.jar (21 kB at 42 kB/s) Downloaded from repo.jenkins-ci.org: http: //repo.jenkins-ci.org/ public /org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar (33 kB at 60 kB/s) [INFO] Compiling 6 source files to /home/abelur/git/description-setter-plugin/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] error: Source option 5 is no longer supported. Use 6 or later. [ERROR] error: Target option 1.5 is no longer supported. Use 1.6 or later. [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:41 min [INFO] Finished at: 2021-05-06T13:06:59+10:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile ( default -compile) on project description-setter: Compilation failure: Compilation failure: [ERROR] error: Source option 5 is no longer supported. Use 6 or later. [ERROR] error: Target option 1.5 is no longer supported. Use 1.6 or later. [ERROR] -> [Help 1]

          Anil Belur added a comment - - edited

          Tried updating the pom file with the required dependencies as suggested on IRC:

           

          16:03 abelur: the plugin is almost 6 years without releases. I wouldn't hold your breath for help from the maintainer.
          
          16:05 abelur: my suggestion is update the parent pom, and set the minimum version to something modern and that might help with compiling. https://www.jenkins.io/doc/developer/plugin-development/updating-parent/
          
          <+halkeye[m]> dev.g4v:halkeye abelur: you'll probably need to depend on the matrix-project plugin. it got split out of jenkins core many many years ago - https://javadoc.jenkins.io/plugin/matrix-project/hudson/matrix/MatrixAggregatable.html

           

          Link to the pom file changes:

          https://pastebin.com/9bY9sHn2

          INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ description-setter ---
          [INFO] Changes detected - recompiling the module!
          [INFO] Compiling 6 source files to /home/abelur/git/description-setter-plugin/target/classes
          [INFO] -------------------------------------------------------------
          [ERROR] COMPILATION ERROR : 
          [INFO] -------------------------------------------------------------
          [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/org.kohsuke.stapler.export.ExportedBean
          [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/hudson.Extension
          [INFO] 2 errors 
          [INFO] -------------------------------------------------------------
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time:  15.014 s
          [INFO] Finished at: 2021-05-06T17:44:39+10:00
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project description-setter: Compilation failure: Compilation failure: 
          [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/org.kohsuke.stapler.export.ExportedBean
          [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/hudson.Extension
          [ERROR] -> [Help 1]
          
          

          Anil Belur added a comment - - edited Tried updating the pom file with the required dependencies as suggested on IRC:   16:03 abelur: the plugin is almost 6 years without releases. I wouldn't hold your breath for help from the maintainer. 16:05 abelur: my suggestion is update the parent pom, and set the minimum version to something modern and that might help with compiling. https://www.jenkins.io/doc/developer/plugin-development/updating-parent/ <+halkeye[m]> dev.g4v:halkeye abelur: you'll probably need to depend on the matrix-project plugin. it got split out of jenkins core many many years ago - https://javadoc.jenkins.io/plugin/matrix-project/hudson/matrix/MatrixAggregatable.html   Link to the pom file changes: https://pastebin.com/9bY9sHn2 INFO] --- maven-compiler-plugin:3.6.1:compile ( default -compile) @ description-setter --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 6 source files to /home/abelur/git/description-setter-plugin/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/org.kohsuke.stapler.export.ExportedBean [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/hudson.Extension [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.014 s [INFO] Finished at: 2021-05-06T17:44:39+10:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile ( default -compile) on project description-setter: Compilation failure: Compilation failure: [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/org.kohsuke.stapler.export.ExportedBean [ERROR] java.nio.file.NoSuchFileException: /home/abelur/git/description-setter-plugin/target/classes/META-INF/annotations/hudson.Extension [ERROR] -> [Help 1]

            huybrechts huybrechts
            askb Anil Belur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: