Mode: Pipeline script from SCM
> git rev-parse origin/${TAG}^{commit} # timeout=10
> git rev-parse ${TAG}^{commit} # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.It looks to me that the variable TAG is not evaluated. Using "master" instead
of "${TAG}" works fine.Bug? I guess so.
Kind Regards,
Thomas
PS: I tried to register at Jenkins JIRA but it's a nightmare. Either the captcha popup appears after hours, or it timeouts or I get null pointer exception after submitting or whatever.
After 20 minutes I gave up. So don't ask me to write a ticket please ;)- ${ENV_VARIABLE}
It is also possible to use environment variables. In this case the variables are evaluated and the result is used as described above.
E.g. ${TREEISH}, refs/tags/${TAGNAME},...
git branch oldversion1.2.3 <tag>
Now push that to your repo, and the multibranch plugin finds that branch, and rebuilds the old code.
Cheers,
Greg