For questions about git hooks, which are customisation scripts extending the default capabilities of git version control repositories.
Questions tagged [git-hooks]
8 questions
13
votes
2 answers
how to automatically create a subdomain for every pull request
Background
I got a team of untechnical QA's who have to do testing on iOS/android apps for every Pull Request (PR) that gets created by my backend team.
Question
This is what I want to do: everytime a backend engineer creates a PR on bitbucket, I…
abbood
- 473
- 4
- 13
5
votes
1 answer
CI platforms versus simple git hooks
Newbie to devops here and apologies this is probably a stupid question, but, what is the point of CI platforms? It seems to me that just by using git hooks I can automatically run all my unit tests before a commit and block the commit if needed. If…
Neil
- 167
- 5
5
votes
1 answer
How to implement blue-green deployment with one master branch
I was told that they easy way out is to have two production branches, master/blue and master/green, git merge action triggers CI to deploy to the matching stacks. Is that possible to do it with single master branch?
Some more details about our…
Joe
- 153
- 3
5
votes
2 answers
Are git pre-receive/update hooks serialized?
I'm investigating the possibility of implementing a "pre-commit" verification flow, enforced on the central SCM server side. By "pre-commit" in this paragraph I don't mean the git pre-commit hook, I really mean before the change becomes part of the…
Dan Cornilescu
- 6,780
- 2
- 21
- 45
5
votes
2 answers
Jenkins trigger build if shared library changes
I have Jenkins Pipeline job define in my git repo as.
// File: deployment/jenkinsfiles/staging/Merge
@Library("my_shared_lib") _
import com.company.myteam.Constants
pipeline {
agent { label "common" }
triggers {
pollSCM("H/2 * *…
NPatel
- 203
- 4
- 9
4
votes
0 answers
Problems with integrating Python script in a Bash script Git pre-receive hook
We have a pre-receive hook script in a bash shell script that enforces commits with messages having the right ticket number in a pre-defined format. We also have a separate python script that can be called in the pre-receive hook bash script to call…
sage
- 179
- 3
2
votes
1 answer
Git Files Encryption for Business
I am using git and have the following problem:
In the company where I work you now want to protect the source code from theft.
So if for some reason a developer lets the source code of a project go along and sells it, for example.
To prevent this, I…
Emanuel Bennici
- 123
- 3
1
vote
1 answer
bitbucket pipeline to push commits to another repo
So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to a new repo.
the issue is this when we make a…
Abdelrhman Mostafa
- 11
- 2