Found the answer:
import jenkins.branch.NameMangler
NameMangler.apply('maintenance/2.4')Result: maintenance-2-4.c4g2o8 28.12.2017 15:59, Viacheslav Dubrovskyi пишет:
Hi.I use multibranch pipeline job. In pipeline for PR I see env.CHANGE_TARGET variable. For example: CHANGE_TARGET=maintenance/2.4But in folder branches of job, it transformed in maintenance-2-4.c4g2o8Ho can I get name of folder if know only env.CHANGE_TARGET? What function used for encode maintenance/2.4 -> maintenance-2-4.c4g2o8 ?I need it because PR use some artifacts from CHANGE_TARGET branch. Thank you.
-- WBD, Viacheslav Dubrovskyi -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41ebe258-509f-0c77-d133-44fec9716366%40gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: Криптографическая подпись S/MIME
