I'm learning the Jenkins pipeline scripts. I'm now at the step that I want to do things in parallel. I tried a few syntaxes, but everytime I get
Nothing to execute within stage "Static Checks" Here is my last attempt:
stage('Static Checks'){ steps{ parallel ("cpp_check":{ node('cppcheck'){ bat '%CPP_CHECK%\\cppcheck.exe -j 4 --quiet --enable=warning,performance,portability --inline-suppr --xml --xml-version=2 src\\Cables src\\PD src\\DataAccess 2> cppcheck-result.xml' checkstyle canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'cppcheck-result.xml', unHealthy: '' } }, "clock"{ node('clock'){ bat '%CLOCK%\\cloc-1.72.exe --by-file --xml --exclude-ext=pro,pri,ts --out=cloc.xml src/' } } ) } } At the moment, it is really confusing because there are so many tutorials with different (old) syntaxes. Most of them are not working with the actual plugin.
So in general the questions are:
- How to execute parallel stages?
- How to execute parallel steps?