Hi, I am trying to invoke my declarative pipeline from shared libraries (so my jenkinsfile is as brief as possible) but it doesn't seem to work properly and the "pipeline" block seems to get executed, but functions like "when" are not evaluated...
Jenkinsfile: #!groovy def application = Constants.SONARQUBE_POC def build = new org.ppluk.JenkinsPipelineBootstrap().setupBuild(application.name, application.next_version) Shared library: #!groovy // vim: set syntax=groovy: // Author: // Description: Declarative Pipeline Bootstrap actions package org.ppluk String setupBuild(String applicationName, String nextVersion) { pipeline { agent { label "Java" } tools { maven "M3" } stages { stage('test') { when { branch "feature/*" } steps { echo "helloworld" } } } }} Is what I am attempting to do actually possible? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d799363c-4519-4a47-be6f-f1fd1c4d2730%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.