DevTools

Jenkins

Add a pipeline stage that installs the DevTools CLI, runs your YAML flows, and publishes JUnit results. Works in classic and declarative pipelines.

Required env vars

Depends on your flows. Common examples:

How to run it

Add a stage to your Jenkinsfile:

stage('API Tests') {
  steps {
    sh 'curl -fsSL https://sh.dev.tools/install.sh | bash'
    sh 'devtools flow run --report junit:test-results.xml tests.yaml'
  }
}
TODO:
pipeline {
  agent any
  stages {
    stage('API Tests') {
      steps {
        sh 'curl -fsSL https://sh.dev.tools/install.sh | bash'
        sh 'devtools flow run --report junit:test-results.xml tests.yaml'
      }
    }
  }
}

What to change

Common variations

Links