I have configured individual jenkins jobs for each project. in my case, whenever there is a commit, all the jobs are getting triggered. how do I make sure only that job pertinent to the project runs and creates the deployable artifacts.
post-commit hook : run the jenkins job based on project changed in git repository
1.1k views Asked by ramesh.metta At
1
There are 1 answers
Related Questions in JENKINS
- Shellscript touch command not working in jenkins pipeline
- Jenkins Docker Agent Configuration Issue: Connection Refused on Local Ubuntu Install
- How to add more input text box in dynamicreferenceparameter in jenkins
- Jenkins pipeline script: Accept merge request from Gitlab
- Jenkins Exec Format Error while cloning repo
- Post checkmarx scan weblink on the Jenkins Build status page
- Exclude a file from merging to the main branch
- Created Jenkins pipeline and added the script in the Pipeline Description.To check out the Project from the svn repository.NotWorking. Any Suggestion
- How to write a Jenkins Pipeline script to fetch needed repo?
- trouble to trigger Jenkins job
- Unable to start jenkins in amazon linux 2: start request repeated too quickly
- is not a valid Cucumber report! String length (20054016) exceeds the maximum length (20000000)
- Run cleanup function in Python when Jenkins job is aborted
- Jenkins pipeline map is getting converted to an array but it's too large I think?
- How do I list which Jenkins credentials used per pipeline in the script console?
Related Questions in CENTOS7
- Git diff command doesn't work with jenkins
- How to Upgrade MariaDB 10.* to the new version 11.* in CWP Panel in Centos 7?
- How do I apply this apache patch: rewrite-windows-testchar-h.patch
- centOs 7 instal nodejs 18
- 503 service unavailable after VPS IP change
- install postgres on centos
- I can't find server.xml?
- How to setup a node JS app as a subdirectory of a regular website without modifying DNS?
- How to upgrade to JFrog Artifactory 7.77.x on CentOS 7?
- QProcess::startDetached() hangs out when executing google-chrome
- nginx can not be installed due to the error 'HTTP Error 503: Service Unavailable '
- Problem when changing mysql data directory in centos 7
- RPM fails to install because of a directory conflict even though permissions are the same
- named.service is failing to start
- Dotnet 3.1 Stripe :The SSL connection could not be established, see inner exception
Related Questions in POST-COMMIT-HOOK
- Fail to run git command in specific directory in global post-commit hook
- Git command to retrieve contents of staged file?
- Jenkins Job failed for 'mlDeployApp' task due to .svn folder
- Why doesn't `git cherry-pick` (without `--no-commit`) run my post-commit hook?
- gitlab commit thread created automatically on a condition
- Bash script won't exit on input command
- svn server: how to manipulate existing revision
- Why do I get an authentication error when checking if a branch exists in svn?
- Why are all my files marked for deletion by Git after I do "git stash pop -q"?
- How to use SVN post-commit hook trigger jenkins build?
- Subversion post commit hook for Jenkins
- Jenkins trigger build URLs
- post-commit hook : run the jenkins job based on project changed in git repository
- run a command in post commit hook when commit a specific path
- Don't execute SVN "post commit hook" when a specific file is committed
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What URL have you configured in GIT repo? Does it contain repo name? Does each project has it's own repository?
When you call
curl http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository>jenkins will scan all the jobs that are configured to check out the specified URL. Do you have multiple jobs using the same repository?You can try to use build triggers - you will be able to invoke a job by its name.