Score:0

Jenkins - Get POM_VERSION without the string SNAPSHOT or RELEASE

cz flag

I need to extract the version 1.1.0-SNAPSHOT from POM_VERSION to just "1.1.0". Is there a way to extract just the version when using Windows batch command?

url -u %tcuser%:%tcpass% '-T .\target\%POM_VERSION%.war "http://localhost:8080/manager/text/deploy?
ba flag
Why is this a Jenkins question and not a maven question? POM version of what?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.