Jenkins
Configure Jenkins in minutes to run your end-to-end tests concurrently via Testery Cloud
pipeline {
// ...
environment {
TESTERY_API_TOKEN = credentials('testery-api-token')
}
// ...
}pipeline {
agent any
stages {
// ...
stage('Testery Tests') {
steps {
script {
echo "Running E2E tests..."
def commit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
sh 'pip install testery --upgrade'
sh 'testery create-deploy --token ${TESTERY_API_TOKEN} --project <yourTesteryProjectKey> --environment <yourTesteryEnvironmentKy> --build-id ${BUILD_ID} --commit ${commit}'
}
}
}
// ...
}
}
Last updated
Was this helpful?