#!/usr/bin/env groovy @Library('jenkins-shared-library') def gv pipeline { agent any tools { maven 'Maven' } stages { stage("init") { steps { script { gv = load "script.groovy" } } } stage("build jar") { steps { node() { buildJar() } } } stage("build image") { steps { node() { buildImage() } } } stage("deploy") { steps { script { gv.deployApp() } } } } }