• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      Is it possible to build something like an hook to run a script if a build
      succeeds. With it I can automaticly restart my test-server with the new code.
      It would be nice if there are some environment variables set, so I can detect
      what project was running in my script.

          [JENKINS-21] 'on success run this script'-hook

          Ronald Klop added a comment -

          As an extra node. It would be very nice to have the build number available in
          this script, so I can show the build number in my application.

          Ronald Klop added a comment - As an extra node. It would be very nice to have the build number available in this script, so I can show the build number in my application.

          Ronald Klop added a comment -

          Sorry for bothering you, but I just found out, that all this functionality is
          already available. The environment variable BUILD_NUMBER is already set en I can
          use my build script to update the server after success.
          Please consider this a no-op and close the issue.

          Ronald Klop added a comment - Sorry for bothering you, but I just found out, that all this functionality is already available. The environment variable BUILD_NUMBER is already set en I can use my build script to update the server after success. Please consider this a no-op and close the issue.

          Closed as requested. I've added more descriptions to explain
          what env variables are available to the shell script.

          If you need to run a shell script after a build is successful,
          you can probably write it also as a part of the build action
          and achieve the same effect.

          Kohsuke Kawaguchi added a comment - Closed as requested. I've added more descriptions to explain what env variables are available to the shell script. If you need to run a shell script after a build is successful, you can probably write it also as a part of the build action and achieve the same effect.

            Unassigned Unassigned
            javakoe Ronald Klop
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: