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

Dependency-Check Trend chart doesn't appears on DSL pipelines jobs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Dependency-Check Trend chart doesn't appears on DSL pipelines jobs
      As it works with freestyle jobs.

       

        Attachments

          Issue Links

            Activity

            vassil vassil marjunits created issue -
            vassil vassil marjunits made changes -
            Field Original Value New Value
            Comment [ {code:java}
            pipeline {pipeline {    agent any    options {        ansiColor('xterm')        buildDiscarder(logRotator(numToKeepStr: '20'))        disableConcurrentBuilds()        timestamps()    }    tools {        jdk 'openjdk-11'     }
                stages{        stage('Checkout some java source') {            steps {                git url: 'https://github.com/bmuschko/whats-new-in-java-11.git', branch: 'master'            }        }        
                    stage('maven build') {            steps {                    sh 'mvn clean install -Dmaven.test.skip -X'                    sh 'ls -alt'                    sh 'ls -alt target'                }            }        // Enable OWASP Dependecy Vulnerabilities Check        stage ('OWASP Dependency-Check Vulnerabilities') {            steps {                //See the additional arguments options https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html dependencyCheck additionalArguments: '', odcInstallation: 'owasp-nexus'              dependencyCheckPublisher pattern: '**/dependency-check-report.xml'              sh 'ls -alt'            }        }
                }        post {    always {        //clean up job workspace        cleanWs()    }  } }
            {code} ]
            vassil vassil marjunits made changes -
            Description Dependency-Check Trend graph doesn't appears on DSL pipelines jobs
            Its works with freestyle jobs.

             
            Dependency-Check Trend graph doesn't appears on DSL pipelines jobs
             As it works with freestyle jobs.

             
            vassil vassil marjunits made changes -
            Description Dependency-Check Trend graph doesn't appears on DSL pipelines jobs
             As it works with freestyle jobs.

             
            Dependency-Check Trend graph doesn't appears on DSL pipelines jobs
             As it works with freestyle jobs.

            !dsl-pipeline.png|thumbnail!  
            Hide
            vassil vassil marjunits added a comment - - edited

            My pipeline:

             
            pipeline {
            agent any
            options

            { ansiColor('xterm') buildDiscarder(logRotator(numToKeepStr: '20')) disableConcurrentBuilds() timestamps() }

            tools

            { jdk 'openjdk-11' }

            stages{
            stage('Checkout some java source') {
            steps

            { git url: 'https://github.com/bmuschko/whats-new-in-java-11.git', branch: 'master' }

            }

            stage('maven build') {
            steps

            { sh 'mvn clean install -Dmaven.test.skip -X' sh 'ls -alt' sh 'ls -alt target' }

            }
            stage ('OWASP Dependency-Check Vulnerabilities') {
            steps

            { dependencyCheck additionalArguments: '', odcInstallation: 'owasp-nexus'  dependencyCheckPublisher pattern: '**/dependency-check-report.xml'    sh 'ls -alt' }

            }

            }
            post {
            always

            { //clean up job workspace cleanWs() }

            }
            }

            Show
            vassil vassil marjunits added a comment - - edited My pipeline:   pipeline { agent any options { ansiColor('xterm') buildDiscarder(logRotator(numToKeepStr: '20')) disableConcurrentBuilds() timestamps() } tools { jdk 'openjdk-11' } stages{ stage('Checkout some java source') { steps { git url: 'https://github.com/bmuschko/whats-new-in-java-11.git', branch: 'master' } } stage('maven build') { steps { sh 'mvn clean install -Dmaven.test.skip -X' sh 'ls -alt' sh 'ls -alt target' } } stage ('OWASP Dependency-Check Vulnerabilities') { steps { dependencyCheck additionalArguments: '', odcInstallation: 'owasp-nexus'  dependencyCheckPublisher pattern: '**/dependency-check-report.xml'    sh 'ls -alt' } } } post { always { //clean up job workspace cleanWs() } } }
            vassil vassil marjunits made changes -
            Description Dependency-Check Trend graph doesn't appears on DSL pipelines jobs
             As it works with freestyle jobs.

            !dsl-pipeline.png|thumbnail!  
            Dependency-Check Trend chart doesn't appears on DSL pipelines jobs
             As it works with freestyle jobs.

            !dsl-pipeline.png|thumbnail!  
            Summary Dependency-Check Trend graph doesn't appears on DSL pipelines jobs Dependency-Check Trend chart doesn't appears on DSL pipelines jobs
            Hide
            lukasio10 Lukasz Gawel added a comment -

            We're seeing the same issue. JenkinsFile:

             

            dependencyCheck additionalArguments: '-scan ./*/packages//.dll --scan ./*/.js --format HTML --format XML --suppression OwaspSupression.xml', odcInstallation: 'Dependency-Check-5.2.1' dependencyCheck additionalArguments: '-scan ./*/packages//.dll --scan ./*/.js --format HTML --format XML --suppression OwaspSupression.xml', odcInstallation: 'Dependency-Check-5.2.1' dependencyCheckPublisher failedNewCritical: 1, failedNewHigh: 1, failedNewLow: 1, failedNewMedium: 1, failedTotalCritical: 0, failedTotalHigh: 2, failedTotalLow: 0, failedTotalMedium: 10, pattern: ''

            Show
            lukasio10 Lukasz Gawel added a comment - We're seeing the same issue. JenkinsFile:   dependencyCheck additionalArguments: '- scan ./* /packages/ / .dll --scan ./* / .js --format HTML --format XML --suppression OwaspSupression.xml', odcInstallation: 'Dependency-Check-5.2.1' dependencyCheck additionalArguments: ' -scan ./* /packages/ / .dll --scan ./* / .js --format HTML --format XML --suppression OwaspSupression.xml', odcInstallation: 'Dependency-Check-5.2.1' dependencyCheckPublisher failedNewCritical: 1, failedNewHigh: 1, failedNewLow: 1, failedNewMedium: 1, failedTotalCritical: 0, failedTotalHigh: 2, failedTotalLow: 0, failedTotalMedium: 10, pattern: ''
            sspringett Steve Springett made changes -
            Link This issue duplicates JENKINS-58381 [ JENKINS-58381 ]
            Hide
            sspringett Steve Springett added a comment -

            This issue has already been reported in JENKINS-58381.  Pull requests are encouraged.

            Show
            sspringett Steve Springett added a comment - This issue has already been reported in  JENKINS-58381 .  Pull requests are encouraged.
            sspringett Steve Springett made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vassil vassil marjunits
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: