I was looking at the pipeline model definition but I can't build it as it errors
mvn install
[ERROR] /XXX/src/github/pipeline-model-definition-plugin/pipeline-model-definition/target/generated-sources/groovy-stubs/org/jenkinsci/plugins/pipeline/modeldefinition/validator/ModelValidatorImpl.java:[11,158] org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidatorImpl is not abstract and does not override abstract method validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue) in org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
Is there a specific version of Java I need?
$ javac -version
javac 1.8.0_151
We are keen on the declarative pipelines at my actual job because we like configuration as code and we usually have Jenkins as a thin wrapper around makefiles
What I was interested in doing was adding matrix jobs in
such as
pipeline {
agent any
axes {
axis1 = 'a', 'b', 'c'
axis2 = 'x', 'y', 'z'
}
stages {
stage('Example') {
steps {
echo "Hello ${axis1} ${axis2}"
}
}
}
}
Where it would run the stages in parallel for each of the 9 combinations
I see there are issues with Blue Ocean and matrix jobs so I was thinking this might avoid that by just creating a bunch of stages with parallel steps
Jeremy