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

How to use this plugin in Jenkinsfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Could somebody give an example in Jenkinsfile?


      According to https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md , And finally found out solution below .

      post {
              always {
                  step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
              }
      }
      

        Attachments

          Issue Links

            Activity

            caryyu github.com/caryyu created issue -
            caryyu github.com/caryyu made changes -
            Field Original Value New Value
            Labels Jenkinsfile pipeline
            caryyu github.com/caryyu made changes -
            Description Could somebody give an example in Jenkinsfile? Could somebody give an example in Jenkinsfile?

            ----

            According to https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md , And finally found out solution below :D.

            {code:java}
            post {
                    always {
                        step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
                    }
            }
            {code}
            caryyu github.com/caryyu made changes -
            Assignee Nalin Makar [ nullin ] github.com/caryyu [ caryyu ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            caryyu github.com/caryyu made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17747 ]

              People

              Assignee:
              caryyu github.com/caryyu
              Reporter:
              caryyu github.com/caryyu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: