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

Testng Plugin should have capability to save the reports in

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am running my testing jobs on Jenkins which publish testng results using the testng-plugin . The daily reports The testng-results.xml are by default stored in the

      <JENKINS_HOME>/jobs/<JOBS_NAME>/builds/<BUILD_NUMBER>/testng/testng-results.xml
      

      Now i want to change the BUILD URL directory so that the builds are saved into the directory, something like this -

      <JENKINS_HOME>/jobs/<JOBS_NAME>/builds/<PARAMETER>/<BUILD_NUMBER>/testng/testng-results.xml
      

      where the <PARAMETER> is declared in each job . Since the PARAMETER is defined in each job , I cannot change the build workspace globally for Jenkins.

      After looking at the github code ,  I see that if I could somehow pass the value of "testngDir" into the plugin then my problem should be resolved

        Attachments

          Activity

          Hide
          rsaxena05 Rati Saxena added a comment -

          Nalin Makar any update/suggestion on this ?

          Show
          rsaxena05 Rati Saxena added a comment - Nalin Makar any update/suggestion on this ?
          Hide
          nullin Nalin Makar added a comment -

          Rati Saxena, I am not maintaining this plugin much. If you create a PR, I can help with getting it merged in.

           

          BTW, looks like you are doing something non-standard. TestNG plugin is figuring out the build dir from the job itself. So, there should be no need to specify `testngdir`. Follow the breadcrumbs in Publisher.java.

          Show
          nullin Nalin Makar added a comment - Rati Saxena , I am not maintaining this plugin much. If you create a PR, I can help with getting it merged in.   BTW, looks like you are doing something non-standard. TestNG plugin is figuring out the build dir from the job itself. So, there should be no need to specify `testngdir`. Follow the breadcrumbs in Publisher.java.

            People

            • Assignee:
              Unassigned
              Reporter:
              rsaxena05 Rati Saxena
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: