I would like to build a dynamic parameter page BEFORE launching a pipeline: - ACTION: comboBox, from MAJOR/MINOR/FIX/SNAPSHOT. - VERSION: inputText, dynamic value depending on git tags and selected ACTION param. I first tryed to use ActiveChoice to achieve that. But in ActiveChoice groovy scripts, I am unable to use http call or execute process (for example ["git", "--version"].execute()), nothing is working to get data dynamically. I then looked at Extended Choice Parameter and I am able to get all git tags with it but unable to update field dynamically like with ActiveChoice. I also discovered jsonEditorOptions which is incredible but I have still the same problem to make things dynamics. In other words : Field ACTION do no need anything particular. Field VERSION need : - to get all tags from git repo - get the value of ACTION - run some other function to determine the good version value depending on the context Could someone give some advice to achive that ? Thank you
-- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba76812d-111b-4f22-bf4c-853ea67c1158n%40googlegroups.com. |
For information, I resolved my problems by using only Extended Choice Parameter with jsonEditorOptions + javascript. I think this is, in December 2020, the only way to something complex with clean code. On Sun, Dec 27, 2020 at 5:50 PM Yannick Lacaute <[hidden email]> wrote:
Yannick LACAUTE Consultant indépendant 39 rue de Wattignies, 75012 Paris Tel : 06 16 85 95 76 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG1W_AxwkHzYoU%3DJkMjQC8jOcSeMh1Nzm6zfHjYA_OhkFSCDbQ%40mail.gmail.com. |
Free forum by Nabble | Edit this page |