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

Allow to run a Gradle Script in a post-build action

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • gradle-plugin
    • None

      It would be extremely useful to allow to run a Gradle Script in a post-build action conditionally.

      For example:

      WHEN MUST EXECUTE:
      [x] BUILD SUCCESS
      [ ] BUILD INSTABLE
      [ ] BUILD FAIL
      GRADLE SCRIPT:
      <CURRENT GRADLE PLUGIN>

          [JENKINS-19624] Allow to run a Gradle Script in a post-build action

          Any updates on this? Any workarounds to it?

          Morgan Kobeissi added a comment - Any updates on this? Any workarounds to it?

          I don't know of anyone working on this feature. As far as a workaround, I would think a shell script executed as a post-build action could do the same thing.

          George Simpson added a comment - I don't know of anyone working on this feature. As far as a workaround, I would think a shell script executed as a post-build action could do the same thing.

          Stefan Wolf added a comment -

          Did you try using the Flexible Publish Plugin ?

          Stefan Wolf added a comment - Did you try using the Flexible Publish Plugin  ?

          Harish Venkat added a comment -

           you can try installing gradle in the vm and try below steps 

          cd /home/ubuntu/jenkins/workspace/*******/demo
          /opt/gradle/gradle-3.4.1/bin/gradle build -x test

           

          Harish Venkat added a comment -  you can try installing gradle in the vm and try below steps  cd /home/ubuntu/jenkins/workspace/*******/demo /opt/gradle/gradle-3.4.1/bin/gradle build -x test  

            gbois Gregory Boissinot
            fbrubbo Fernando Rubbo
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: