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

Testng Plugin should have capability to save the reports in

    XMLWordPrintable

Details

    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

          rsaxena05 Rati Saxena added a comment -

          nullin any update/suggestion on this ?

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

          rsaxena05, 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.

          nullin Nalin Makar added a comment - rsaxena05 , 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.
          markewaite Mark Waite added a comment -

          I'm not willing to consider this enhancement. The TestNG Results Plugin storage location should not be under the control of the user.

          markewaite Mark Waite added a comment - I'm not willing to consider this enhancement. The TestNG Results Plugin storage location should not be under the control of the user.

          People

            Unassigned Unassigned
            rsaxena05 Rati Saxena
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: