github.com/datadog/cilium@v1.6.12/jenkinsfiles/docs.Jenkinsfile (about)

     1  @Library('cilium') _
     2  pipeline {
     3      agent {
     4          label 'baremetal'
     5      }
     6  
     7      parameters {
     8          string(defaultValue: '${ghprbPullDescription}', name: 'ghprbPullDescription')
     9          string(defaultValue: '${ghprbActualCommit}', name: 'ghprbActualCommit')
    10          string(defaultValue: '${ghprbTriggerAuthorLoginMention}', name: 'ghprbTriggerAuthorLoginMention')
    11          string(defaultValue: '${ghprbPullAuthorLoginMention}', name: 'ghprbPullAuthorLoginMention')
    12          string(defaultValue: '${ghprbGhRepository}', name: 'ghprbGhRepository')
    13          string(defaultValue: '${ghprbPullLongDescription}', name: 'ghprbPullLongDescription')
    14          string(defaultValue: '${ghprbCredentialsId}', name: 'ghprbCredentialsId')
    15          string(defaultValue: '${ghprbTriggerAuthorLogin}', name: 'ghprbTriggerAuthorLogin')
    16          string(defaultValue: '${ghprbPullAuthorLogin}', name: 'ghprbPullAuthorLogin')
    17          string(defaultValue: '${ghprbTriggerAuthor}', name: 'ghprbTriggerAuthor')
    18          string(defaultValue: '${ghprbCommentBody}', name: 'ghprbCommentBody')
    19          string(defaultValue: '${ghprbPullTitle}', name: 'ghprbPullTitle')
    20          string(defaultValue: '${ghprbPullLink}', name: 'ghprbPullLink')
    21          string(defaultValue: '${ghprbAuthorRepoGitUrl}', name: 'ghprbAuthorRepoGitUrl')
    22          string(defaultValue: '${ghprbTargetBranch}', name: 'ghprbTargetBranch')
    23          string(defaultValue: '${ghprbPullId}', name: 'ghprbPullId')
    24          string(defaultValue: '${ghprbActualCommitAuthor}', name: 'ghprbActualCommitAuthor')
    25          string(defaultValue: '${ghprbActualCommitAuthorEmail}', name: 'ghprbActualCommitAuthorEmail')
    26          string(defaultValue: '${ghprbTriggerAuthorEmail}', name: 'ghprbTriggerAuthorEmail')
    27          string(defaultValue: '${GIT_BRANCH}', name: 'GIT_BRANCH')
    28          string(defaultValue: '${ghprbPullAuthorEmail}', name: 'ghprbPullAuthorEmail')
    29          string(defaultValue: '${sha1}', name: 'sha1')
    30          string(defaultValue: '${ghprbSourceBranch}', name: 'ghprbSourceBranch')
    31      }
    32  
    33      options {
    34          timeout(time: 300, unit: 'MINUTES')
    35          timestamps()
    36          ansiColor('xterm')
    37      }
    38  
    39      stages {
    40          stage('Docs') {
    41              options {
    42                  timeout(time: 20, unit: 'MINUTES')
    43              }
    44              steps {
    45                  Status("PENDING", "${env.JOB_NAME}")
    46                  checkout scm
    47                  sh "make test-docs"
    48              }
    49          }
    50      }
    51      post {
    52          always {
    53              cleanWs()
    54          }
    55          success {
    56              Status("SUCCESS", "${env.JOB_NAME}")
    57          }
    58          failure {
    59              Status("FAILURE", "${env.JOB_NAME}")
    60          }
    61      }
    62  }