inuits/jenkins-global-lib

Name: jenkins-global-lib

Owner: Inuits

Description: A global library you can use in you Jenkins

Created: 2016-12-22 10:27:30.0

Updated: 2017-08-27 13:19:09.0

Pushed: 2016-12-22 10:49:06.0

Homepage: null

Size: 65

Language: Groovy

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

A Global Library for Jenkins

This is a global library you can use in your Jenkins.

How To
  1. Install the Pipeline Shared Groovy Libraries Plugin
  2. Define this shared lib in your Jenkins: Jenkins Config
What is there?
Remove Git Actions from a build

This is a workaround for JENKINS-40622.

When using multiple git repositories (with Pipeline) the build menu is useless. To find the “Waiting for input” button, you need to scroll a lot.

The following code will remove all the “git actions” in individual builds menu:

rt eu.inuits.BuildHelpers

 {
checkout scm
checkout scm2
checkout scm3
checkout scm4

new BuildHelpers(this).removeGitActions()

Requires Jenkins >= 2.29 or Jenkins LTS >= 2.31.1.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.