Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) Maybe you find a switch more readable: def result switch(branch) { case "main": result = "@daily" break case "mast

Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) Maybe you find a switch more readable: def result switch(branch) { case "main": result = "@daily" break case "master": result = "@hourly"

Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code ``` def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) ``` Maybe you find a switch more readable: ``` def result switch(branch) { case "main": result = "@daily" break case "master": result = "@hourly"

CppCheck plugin dashboard view with nodes

2022-06-02 Thread Marc Zimmermann
Hello, I am trying to use the dashboard view of cppcheck plugin along with jobs only running on nodes and I get an empty table. [image: dashboard.PNG] Whereas in the job itself I do have some error and warnings. [image: job_results.PNG] And for projects running directly on the master n