This is open source jenkins shared library repository. This repository contains groovy functions, anyone can call them in their groovy scripts.
- Make a Jenkinsfile in your own github repository
- Fork this repo
- Call groovy function like following example-->
library identifier: 'general_node-app_template@master', retriever: modernSCM( [$class: 'GitSCMSource', remote: 'Forked Repo URL', credentialsId: 'YOUR-Credentials']) general_node-app_template()
- Create a new branch in your forked repository and then start working
- Include a proper commit message in your commits
- Always rebase with
master:mani1soni/jenkins-shared-library
to avoid merge conflicts whenever you start to work - Include proper PR message while giving pull request
- Try to keep pull requests small to minimize merge conflicts
- Fork this repo (button on top)
- Clone on your local machine
$ git clone https://github.com/mani1soni/jenkins-shared-library
- Change to
jenkins-shared-library
directory$ cd jenkins-shared-library
- Create a new branch
$ git checkout -b my-new-branch
- Add your contribution
- Commit and push
$ git add .
$ git commit -m "your-commit-msg"
$ git push origin my-new-branch
- Create a new pull request from your forked repository to
master
branch ofmani1soni/jenkins-shared-library
🎉 🎊 😃 Happy Contributing 😃 🎊 🎉
Manish Soni Twitter: @manisomanish Github: @mani1soni Linkedin: @manisomanish DevOps Engineer |
Parth Vyas Github: @parthvyas Linkedin: @parthvyas DevOps Engineer |