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

dependency-track-plugin 2.3.0 crashes declarative pipeline job

XMLWordPrintable

      After upgrade from dependency-track plugin 2.2.1 to 2.30, all my Jenkins jobs that use declarative pipelines instantly crashed.

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 91: Invalid parameter "artifactType", did you mean "artifact"? @ line 91, column 19.
                           artifactType: 'bom',
      
      1 error
      
      	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
      	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
      

      Jenkinsfile contained:

      dependencyTrackPublisher(
                        artifact: 'bom.xml',
                        artifactType: 'bom',
                        projectId: '63d57c58-0437-4cdd-a020-a870eba81956',
                        synchronous: true)
            }
      

      Removal of artifactType line addressed the issue.

      Problems:

      • Could not the change have been implemented in a way that resulted in a warning rather than an error? (FWIW, our scripted pipelines gave warnings and not errors).
      • Failing that, should not such a breaking change have resulted in the version number bumping to 3.0.0 rather than 2.3.0?
      • There are no release notes published, nor warning in the project readme.md
      • The readme still shows info for the old version (eg, screenshot with "Choose artifact type".

            sephirothj Ronny Perinke
            msymons Mark Symons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: