Repair a Scripted Pipeline
Use Scripted Pipeline node and stage steps instead of Declarative-only structure.
A intermediate Jenkins challenge worth 10 points. Solve it hands-on in a real Jenkins environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: A teammate mixed Declarative directives into a Scripted Pipeline, so it cannot compile.
Requirements:
- Remove the invalid top-level
stagesdirective - Allocate
node('lab-linux') - Keep Checkout, Test, and Complete as Scripted
stagecalls - Run
npm testbefore completing