Thanks, so I need to do it this way?
{
pipeline{
node{
def pom = readMavenPom()
def version=pom.version
agent any
tools {
maven '3.x'
}
stages{}
}
}
}?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group
If you´re inside a "node" and your workspace has a valid pom.xml file,
readMavenPom() should do the magic.
You could than acess the version using
def pom = readMavenPom()
def version = pom.version
Torsten
Am Sonntag, 4. Februar 2018 07:19:59 UTC+1 schrieb Hongguo An:
>
> Hi:
> I am using
Hi:
I am using Jenkins 2.104, I am using pipeline from Jenkinsfile. What is the
right way to get POM Version? I have the pipeline-utility-steps-plugin
installed.
If I using
{
pipeline{
environment
{
ECRURL = 'https://353705521121.dkr.ecr.us-east-1.amazonaws.com'