Sha256: 34c6b2eb5b5fb6b5210eba9b34fb3e0344851ae0422fb9f0776c1af4d294150a

Contents?: true

Size: 911 Bytes

Versions: 19

Compression:

Stored size: 911 Bytes

Contents

#!/bin/sh
#
# This hook script kicks-in after git has completed
# a push, it will thus never be able to abort a push.
#
# This hook will:
# - ping Jenkins to trigger any builds related to the
#   git push

# let the user perfoming a git push know that we actually do something
echo "Start post-update"

# Hit Jenkins to initiate a Jenkins poll for which jobs that shall be started as
# consequence of a push to a specific git repo. The generic format for this is:
# curl <jenkins_url>/git/notifyCommit?url=<git repo url>
#
# If jenkins is accessible on http://jenkins.example.com:8080 and
# you want to initiate a poll for jobs associated with the giblish repository on
# github located at https://github.com/rillbert/giblish.git
# you would use the following:
curl http://jenkins.example.com:8080/git/notifyCommit?url=https://github.com/rillbert/giblish.git

# Tell user we're done
echo "Finished post-update"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
giblish-2.2.2 scripts/hooks/post-update.example
giblish-2.2.1 scripts/hooks/post-update.example
giblish-2.2.0 scripts/hooks/post-update.example
giblish-2.1.2 scripts/hooks/post-update.example
giblish-2.1.1 scripts/hooks/post-update.example
giblish-2.1.0 scripts/hooks/post-update.example
giblish-2.0.1 scripts/hooks/post-update.example
giblish-2.0.0 scripts/hooks/post-update.example
giblish-2.0.0.pre.alpha1 scripts/hooks/post-update.example
giblish-1.0.0 scripts/hooks/post-update.example
giblish-1.0.0.rc2 scripts/hooks/post-update.example
giblish-0.8.2 docgen/scripts/githook_examples/post-update.example
giblish-0.8.1 docgen/scripts/githook_examples/post-update.example
giblish-0.8.0 docgen/scripts/githook_examples/post-update.example
giblish-0.7.6 docgen/scripts/githook_examples/post-update.example
giblish-0.7.5 docgen/scripts/githook_examples/post-update.example
giblish-0.7.0 docgen/scripts/githook_examples/post-update.example
giblish-0.6.1 docgen/scripts/githook_examples/post-update.example
giblish-0.6.0 docgen/scripts/githook_examples/post-update.example