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

Add a post-build action to generate war file

    Details

    • Similar Issues:

      Description

      We cannot publish cobertura report and generate a clean war file in the pre-build steps. Since generating a clean war includes cleaning the test-reports and compiled class files and results in build failure with no test reports ready for publishing

        Attachments

          Activity

          Hide
          hardwickj James Hardwick added a comment -

          I don't understand where you are having a problem. You can just set your grails target as:

          clean "test-app -coverage -xml" war

          ...and you'll get fresh test results as well as a deployable artifact. Performing a clean between the "test-app" and "war" targets gets you nothing as anything generated from test-app shouldn't get bundled into the war anyways.

          Show
          hardwickj James Hardwick added a comment - I don't understand where you are having a problem. You can just set your grails target as: clean "test-app -coverage -xml" war ...and you'll get fresh test results as well as a deployable artifact. Performing a clean between the "test-app" and "war" targets gets you nothing as anything generated from test-app shouldn't get bundled into the war anyways.

            People

            • Assignee:
              jeffg2one jeffg2one
              Reporter:
              bond Ravi Teja Lokineni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: