#!groovy

pipeline{
	agent{
		node{
			label "master"
		}
	}
	
	stages{
		stage("test"){
			steps{
				echo "${createVersion(BUILD_NUMBER)}"
			}
		}
	}
}
def createVersion(String BUILD_NUMBER){
	return new Date().format('yymm')+"-${BUILD_NUMBER}"
}