#!/usr/bin/env groovy // This is a basic workflow to help you get started with Jenkins Pipeline // This pipeline should ony be triggered when you raise a PR/make changes to it pipeline { agent any // Setting a few env for HyperTest Cli environment { HT_BASE_URL='http://:' HT_COMMIT_HASH="${sh (returnStdout: true, script: 'echo ${GIT_COMMIT}').trim()}" HT_BRANCH="${sh (returnStdout: true, script: 'echo ${GIT_BRANCH}').trim()}" } stages { // Steps to build your application stage('Build') { steps { sh 'echo "steps to build"' } } // Steps to deploy your application stage('Deploy') { steps { sh 'echo "steps to deploy"' } } // Steps to test your application stage('Deploy') { steps { sh 'echo "steps to test"' } } // Steps to start a new test run stage('Start new test run') { steps { sh 'echo "This job downloads HyperTest Cli and start a new test"' sh 'printenv' sh 'wget -O ht-cli.tar.xz https://hypertest-binaries-1.s3.ap-south-1.amazonaws.com/ht-cli/ht-cli-latest.tar.xz' sh 'tar xvf ht-cli.tar.xz' sh './hypertest can-run-test' sh './hypertest start-new-test' } } } }