How do I run Second Group Of Tests parallel to the two axes of First Group Of Tests?
pipeline {
agent none
options {
lock(resource: null, label: 'some-label', quantity: 1, variable: 'NAME')
}
stages {
stage('Checkout, Build & Update Stack') {
agent { label 'some label' }
stages {
stage('Checkout') {
steps {
...
}
}
stage('Build') {
steps {
...
}
}
stage('Update Stack') {
steps {
...
}
}
}
}
stage('First Group Of Tests') {
matrix {
agent { label 'cycle' }
axes {
axis {
name 'VERSION'
values 'oldest', 'latest'
}
}
stages {
stage('Test Single Matrix Axis') {
steps {
...
}
post {
...
}
}
}
}
}
stage('Second Group Of Tests') {
steps {
...
}
post {
...
}
}
}
}
`
I tried wrapping the two stages in a parallel. This was the error: "matrix" or "parallel" cannot be nested inside another "matrix" or "parallel". Also, I tried wrapping the two stages in another stage. Error: Unknown stage section "stage". Starting with version 0.5, steps in a stage must be in a ‘steps’ block.