standardPipeline()¶
The main pipeline entry point. A single call that replaces the full boilerplate Jenkinsfile. Internally calls detectAgent() for agent selection, runs tests via runTests(), and ingests the build result to Leliel via knowledgeApiIngest().
Usage¶
// Load the shared library and run the full standard platform pipeline
@Library('shared') _
standardPipeline()
Config options¶
// Override the test command and JUnit result pattern for non-standard test setups
standardPipeline([
testCommand: 'npm test',
junitPattern: 'test-results/**/*.xml',
])
| Key | Default | Description |
|---|---|---|
testCommand |
agent default | Shell command passed to runTests() |
junitPattern |
test-results.xml |
Glob pattern for JUnit result files |