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'

        AWS_REGION = 'us-east-1'

        VERSION = readMavenPom().getVersion()

    }
}
}

//If says getVersion can't be called.
If I use 

def pom = readMavenPom() in any place of the file, it says the readMavenPom 
is not defined.

Please help to fix this

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5825663c-36f7-4197-b9c4-4adf00b3e89c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to