79077597

Date: 2024-10-11 09:28:27
Score: 1
Natty:
Report link

This gets the version without -SNAPSHOT and saves it in the variable versionFromPom:

steps:
  - bash: echo "##vso[task.setvariable variable=versionFromPom]$(cat ./pom.xml | grep -m 1 "<version>" | grep -Po '<version>\K\d{1,}\.\d{1,}\.\d{1,}')" 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Trilorian