是否可以使用jenkinsfile中的项目/职位描述?

时间:2019-08-07 15:57:30

标签: jenkins jenkins-pipeline jenkins-groovy

是否可以在jenkinsfile中提供工作/项目描述? 我有一个管道(请参见代码),并希望在此jenkinsfile中设置项目描述。 有可能吗?

#!groovy
// Check ub1 properties
properties([disableConcurrentBuilds()])

pipeline {
    agent { 
        label 'master'
        }
    options {
        buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
        timestamps()
    }
    stages {
        stage("First step") {
            steps {
                sh 'hostname'
            }
        }
        stage("Second step") {
            steps {
                sh 'uptime'
            }
        }
    }
}

0 个答案:

没有答案
相关问题