Skip to content

jenkinsci/git-push-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-push

Build Status Contributors Jenkins Plugin GitHub release Jenkins Plugin Installs

Introduction

This plugin allows to perform a git push as a post build step via Git Plugin

In details, the plugin will pull then push (tags included) to the selected remote branch.

Getting started

Pipeline

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

Add Git Push as a post build action:

alt text

Configure the action:

alt text

Issues

Report issues and enhancements in the Issue tracker.

Contributing

Refer to our contribution guidelines

LICENSE

Licensed under MIT, see LICENSE