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

Would be nice to have a trigger based on an environment var or parameter

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      Finding I want to send an email based on a build param. There is now way to either wrap the email sending in the post build in an if statement or add a trigger that is based on a environment variable or parameter
      This functionality would be extremely helpful

          [JENKINS-26946] Would be nice to have a trigger based on an environment var or parameter

          Alex Earl added a comment -

          With the script trigger, you can develop any trigger you want. Check an environment variable, etc.

          TL;DR you can do this now with the script trigger.

          Alex Earl added a comment - With the script trigger, you can develop any trigger you want. Check an environment variable, etc. TL;DR you can do this now with the script trigger.

          Alex Earl added a comment -

          The script trigger should allow you to this.

          Alex Earl added a comment - The script trigger should allow you to this.

          What version of the plugin is that in, the newest one? I don't see anything on the wiki about this, or maybe im missing something, but thanks this is great! We will try upgrading to the newest plugin soo we are on 38.2

          Lorelei McCollum added a comment - What version of the plugin is that in, the newest one? I don't see anything on the wiki about this, or maybe im missing something, but thanks this is great! We will try upgrading to the newest plugin soo we are on 38.2

          Alex Earl added a comment -

          It's been in since March of 2013, so 2.38.2 should have it. Just add a trigger from the list named "Script" and it should allow you to enter a script to check whatever you want.

          Alex Earl added a comment - It's been in since March of 2013, so 2.38.2 should have it. Just add a trigger from the list named "Script" and it should allow you to enter a script to check whatever you want.

            slide_o_mix Alex Earl
            lorelei Lorelei McCollum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: