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

Add an option to deactivate hook for a job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In our Jenkins we have different jobs for the same project.
      For example we have a job for continuous integration that must be triggered after each push and we have a job triggered one per day and do a Sonar analyse.
      But when we activate the hook on a project all jobs in Jenkins that use the corresponding git url is triggered on push.
      It is possible to add an option in Jenkins to mark a build as not to be triggered by hook ?

      Thanks

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          You can do this via the git configuration. Add the "Don't trigger a build on commit notification" item to the Git configuration (this is assuming a recent version of the Git plugin). I use this all the time.

          Show
          slide_o_mix Alex Earl added a comment - You can do this via the git configuration. Add the "Don't trigger a build on commit notification" item to the Git configuration (this is assuming a recent version of the Git plugin). I use this all the time.
          Hide
          elvanja Vanja Radovanović added a comment -

          Exactly like Alex said. That should be sufficient to filter out unwanted jobs.
          This is also mentioned in documentation: https://github.com/elvanja/jenkins-gitlab-hook-plugin#additional-notes

          Show
          elvanja Vanja Radovanović added a comment - Exactly like Alex said. That should be sufficient to filter out unwanted jobs. This is also mentioned in documentation: https://github.com/elvanja/jenkins-gitlab-hook-plugin#additional-notes

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gboucherie Guillaume Boucherie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: