This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
gitlab_satis [2018/11/09 14:05] – [Using Environment variable] admin | gitlab_satis [2018/11/14 13:59] – [Optional] admin | ||
---|---|---|---|
Line 118: | Line 118: | ||
payload = JSON.parse(STDIN.read) | payload = JSON.parse(STDIN.read) | ||
+ | |||
# Only run this code in case we are dealing with tag_push event | # Only run this code in case we are dealing with tag_push event | ||
Line 125: | Line 126: | ||
shaFile = "# | shaFile = "# | ||
- | # Get hash values | + | # Get refs to compare |
- | payloadHash | + | payloadCurrent |
- | payloadHashBefore | + | payloadBefore |
- | # Save before and after hash to compare | + | # Save refs to compare |
File.delete(shaFile) if File.exist? | File.delete(shaFile) if File.exist? | ||
- | File.write(shaFile, | + | File.write(shaFile, |
# Trigger Pipeline | # Trigger Pipeline | ||
- | | + | |
- | | + | |
end | end | ||
+ | |||
end | end | ||
</ | </ |