Parameter is called incorrectly

I set params

params {
param("system.BRANCH", """${'$'}(echo "%teamcity.build.branch%" | cut -d"/" -f2)""")
param("system.NUMBER", "%build.counter%")
}

And at the maven step, I want to set the version

object VersionsSetStep: MavenStep(

{
goals = "versions:set"
jvmArgs = "-DskipTests=true -DnewVersion=%system.BRANCH%.%system.NUMBER% -Dmaven.wagon.http.ssl.allowall=true"
}
)

But in the logs I see an error

-DskipTests=true "-DnewVersion='$(echo "release/0.0" | cut -d"/" -f2)'.%build.number%"

Branch

branchSpec = """
+:refs/heads/(develop)
+:refs/heads/(master)
+:refs/heads/(release/*)
+:refs/heads/(feature/*)
+:refs/heads/(hotfix/*)
""".trimIndent()

 

 

Please sign in to leave a comment.