Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

git - Specifying a branchname to release in jenkins maven-job

I use a maven-job in Jenkins that gets the text-parameter "TAG" where the user is meant to name a new Tag that should be generated in git and be used to branch out. I'm fairly new to programming, so I'm sorry if this is ridiculous but I tried to execute the following goals in the Build:

-Dparam1=%JOB_PARAM_1% release:clean release:prepare release:branch param1 release:perform

Unfortunately, the console tells me, that

The parameters 'branchName' for goal org.apache.maven.plugins:maven-release-plugin:2.5.3:branch are missing or invalid

(I already tried release:clean release:prepare release:branch branchName = param1)

I'd be happy if someone could tell me where I'm going wrong, as I said: I want git to tag the new version with the parameter name and then branch out from there automatically.

Thanks in advance =)

question from:https://stackoverflow.com/questions/65950524/specifying-a-branchname-to-release-in-jenkins-maven-job

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...