[Solved] How to add regular expression to jenkins pipeline? [closed]
Please read documents carefully before asking! There is no syntax format like “when + environment”. Try “when + expression”, for example: stage(“example”) { when { expression { return egText.contains(“abcd”) } } Beside that, about environment: The environment directive specifies a sequence of key-value pairs which will be defined as environment variables for all steps, or … Read more