Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenkinsci/git-push-plugin
Jenkins plugin allowing to perform a git push as a post build step
https://github.com/jenkinsci/git-push-plugin
git git-push scm
Last synced: 3 months ago
JSON representation
Jenkins plugin allowing to perform a git push as a post build step
- Host: GitHub
- URL: https://github.com/jenkinsci/git-push-plugin
- Owner: jenkinsci
- License: mit
- Created: 2021-08-04T17:51:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T15:36:08.000Z (4 months ago)
- Last Synced: 2024-09-30T05:46:11.090Z (3 months ago)
- Topics: git, git-push, scm
- Language: Java
- Homepage: https://plugins.jenkins.io/git-push/
- Size: 257 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# git-push
[![Build Status](https://ci.jenkins.io/job/Plugins/job/git-push-plugin/job/master/badge/icon)](https://ci.jenkins.io/job/Plugins/job/git-push-plugin/job/master/)
[![Contributors](https://img.shields.io/github/contributors/jenkinsci/git-push-plugin.svg)](https://github.com/jenkinsci/git-push-plugin/graphs/contributors)
[![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/git-push.svg)](https://plugins.jenkins.io/git-push)
[![GitHub release](https://img.shields.io/github/release/jenkinsci/git-push-plugin.svg?label=changelog)](https://github.com/jenkinsci/git-push-plugin/releases/latest)
[![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/git-push.svg?color=blue)](https://plugins.jenkins.io/git-push)## Introduction
This plugin allows to perform a git push as a post build step via [Git Plugin](https://plugins.jenkins.io/git)
In details, the plugin will pull then push (tags included) to the selected remote branch.
## Getting started
### Pipeline
```groovy
gitPush(gitScm: scm, targetBranch: env.BRANCH_NAME, targetRepo: 'origin')
```### Jenkins Job
The instructions below are based on a Jenkins job created as a Freestyle project.
Open the Jenkins job configuration.
Make sure the job uses git `Source Code Management`.
For example, a basic git configuration could look like this:![alt text](doc/git-plugin-configuration.png "Git configuration")
Add `Git Push` as a post build action:
![alt text](doc/add-post-build-action.png "Add the post build action")
Configure the action:
![alt text](doc/configure-action.png "Configure the action")
## Issues
Report issues and enhancements in the [Issue tracker](https://github.com/jenkinsci/git-push-plugin/issues).
## Contributing
Refer to our [contribution guidelines](https://github.com/jenkinsci/.github/blob/master/CONTRIBUTING.md)
## LICENSE
Licensed under MIT, see [LICENSE](LICENSE.md)