Skip to content

Instantly share code, notes, and snippets.

@jabad21
jabad21 / Jenkinsfile
Last active May 15, 2018 17:18
example-pipeline-using-jenkins-shared-library
#!groovy
@Library('jenkins-shared-library') _
backendServicePipeline {
developmentRepositoryUrl = '[email protected]:dev-newservice-repository.git'
stagingRepositoryUrl = '[email protected]:stg-newservice-repository.git'
productionRepositoryUrl = '[email protected]'
slackNotificationChannel = '#backend-events'
swaggerYamlFilename = 'newservice.yaml'
@jabad21
jabad21 / backendServicePipeline.groovy
Last active October 9, 2019 23:05
example-pipeline-on-jenkins-shared-library
def call(body) {
def pipelineParams = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = pipelineParams
body()
pipeline {
agent {
label 'builder-backend'
}