@ -0,0 +1,3 @@
library identifier:'jenkinsfileExample@current', retriever:legacySCM(scm)
testBuildFileName()
@ -0,0 +1,31 @@
pipeline {
agent any
tools {
maven 'maven-3.6.0'
}
stages {
stage("SCM checkout"){
steps{
echo "BRANCH_NAME: ${env.BRANCH_NAME}"
checkout scm
stage("branch processing"){
script {
if (env.BRANCH_NAME.startsWith("feature")) {
echo "rebase ${env.BRANCH_NAME} on develop"
stage("maven build"){
sh '''mvn clean install'''
@ -0,0 +1,5 @@
class PipelineStep{
def run(script){
println( "inside class")
class PipeLineStepTest{
def run(script, env){
script.echo "second test"
@ -0,0 +1,6 @@
def call(){
node {
echo "test"
new PipeLineStepTest().run(this, env)