github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/functional/Jenkinsfile (about)

     1  @Library('ReleaseManagementSharedLib') _
     2  
     3  pipeline {
     4    agent {
     5      node {
     6        label 'cli'
     7      }
     8    }
     9  
    10    stages {
    11      stage('Setup') {
    12        steps {
    13          buildStep('Setup') {
    14            sh './.jenkins/main.sh --setup-machine'
    15            sh './.jenkins/main.sh --shutdown-infrastructure'
    16          }
    17        }
    18      }
    19      stage('Pull Infrastructure Images') {
    20        steps {
    21          buildStep('Pull Infrastructure Images') {
    22            sh './.jenkins/main.sh --pull-infrastructure-images'
    23          }
    24        }
    25      }
    26      stage('Start Infrastructure') {
    27        steps {
    28          buildStep('Start Infrastructure') {
    29            sh './.jenkins/main.sh --start-infrastructure'
    30          }
    31        }
    32      }
    33      stage('Create Test User') {
    34        steps {
    35          buildStep('Create Test User') {
    36            sh './.jenkins/main.sh --create-test-user'
    37          }
    38        }
    39      }
    40      stage('Tests') {
    41        steps {
    42          buildStep('Tests') {
    43            timeout(time: 10, unit: 'MINUTES') {
    44              sh './.jenkins/test.sh'
    45            }
    46          }
    47        }
    48        post {
    49          always {
    50            junit(allowEmptyResults: true, testResults: 'tests/results/TEST-*.xml')
    51  
    52            archiveArtifacts artifacts: 'tests/results/report.txt'
    53  
    54            sh './.jenkins/main.sh --shutdown-infrastructure'
    55          }
    56        }
    57      }
    58    }
    59  }