As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 2892d414 authored by Sytse Sijbrandij's avatar Sytse Sijbrandij
Browse files

Put before exit so it is executed.

parent 44601bac
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,8 +3,7 @@
# This file was placed here by GitLab Shell.
# It is a shared file that is symlinked from all repositories.
# It makes sure that your pushed commits will be processed properly.
# You can add your own hooks to by uncommenting the lines at the bottom.
# If you upgrade GitLab Shell you will have to redo your changes.
# For instructions on how to add custom hooks see the comment below.
# Consider using project services of post-receive hooks
# See http://doc.gitlab.com/ce/integration/README.html
# Or use web hooks that trigger an external application
Loading
Loading
@@ -17,16 +16,16 @@ repo_path = Dir.pwd
require_relative '../lib/gitlab_post_receive'
if GitlabPostReceive.new(repo_path, key_id, changes).exec
## How to add a custom hooks to some repositories:
## 1) Put a file with custom code in the repository root directory.
## 2) Uncomment the lines below.
## 3) Replace 'project-specific-hook' with the name if the custom file.
## 4) If you upgrade GitLab Shell you will have to redo your changes.
#
# if File.exists?('project-specific-hook')
# execute 'project-specific-hook'
# end
exit 0
else
exit 1
end
## How to add a custom hooks to some repositories:
## 1) Put a file with custom code in the repository root directory.
## 2) Uncomment the lines below.
## 3) Replace 'project-specific-hook' with the name if the custom file.
#
# if File.exists?('project-specific-hook')
# execute 'project-specific-hook'
# end
Loading
Loading
@@ -3,8 +3,7 @@
# This file was placed here by GitLab Shell.
# It is a shared file that is symlinked from all repositories.
# It makes sure that your pushed commits will be processed properly.
# You can add your own hooks to by uncommenting the lines at the bottom.
# If you upgrade GitLab Shell you will have to redo your changes.
# For instructions on how to add custom hooks see the comment below.
# In GitLab Enterprise Edition you can use Git Hooks instead.
# See http://doc.gitlab.com/ee/git_hooks/git_hooks.html
Loading
Loading
@@ -15,16 +14,17 @@ repo_path = Dir.pwd
require_relative '../lib/gitlab_access'
if GitlabAccess.new(repo_path, key_id, refs).exec
## How to add a custom hooks to some repositories:
## 1) Put a file with custom code in the repository root directory.
## 2) Uncomment the lines below.
## 3) Replace 'project-specific-hook' with the name if the custom file.
## 4) If you upgrade GitLab Shell you will have to redo your changes.
#
# if File.exists?('project-specific-hook')
# execute 'project-specific-hook'
# end
exit 0
else
exit 1
end
## How to add a custom hooks to some repositories:
## 1) Put a file with custom code in the repository root directory.
## 2) Uncomment the lines below.
## 3) Replace 'project-specific-hook' with the name if the custom file.
#
# if File.exists?('project-specific-hook')
# execute 'project-specific-hook'
# end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment