Skip to content

Instantly share code, notes, and snippets.

View taherbs's full-sized avatar

Med Taher Ben Salem taherbs

View GitHub Profile
@taherbs
taherbs / Jenkinsfile
Last active July 17, 2023 15:08
This script defines a Jenkins pipeline that executes tasks in parallel on multiple nodes based on specified labels, retrieves the operating system of each node, and allows selection of nodes using regular expressions.
/*
This script defines a Jenkins pipeline that executes tasks in parallel on multiple nodes based on specified label expression,
retrieves the operating system of each node, and allows selection of nodes using regular expressions.
*/
properties([
parameters([
[$class: 'LabelParameterDefinition',
allNodesMatchingLabel: true,
name: 'NODE_LABELS',
@taherbs
taherbs / Jenkinsfile
Last active March 25, 2024 06:01
jenkins safe auto update plugins
def DATETIME = new Date().format('yyyy_MM_dd_HH_mm_ss', TimeZone.getTimeZone('Canada/Eastern'))
def pluginsToReviewManually = []
def pluginsDeprecated = []
pipeline {
agent { label 'master' }
options {
//Build options
disableConcurrentBuilds()
buildDiscarder(
logRotator (