0

Jenkins 流水线插件

 3 years ago
source link: https://linuxsuren.github.io/blog/devops/jenkins/jenkins-plugin/pipeline/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Jenkins 流水线插件

Jenkins 流水线插件

流水线是 Jenkins 的一大特点,而这点在 DevOps 中显得尤为重要。它可以把一系列过程串起来,并且很好地用图形化的方式展现出来。

在插件管理界面中搜索 workflow-aggregator 后,勾选点击安装。

/codes/jenkinsfile/simple.groovy
pipeline {
    agent any

    stages{
        stage("one") {
            steps{
                echo "one"
            }
        }
        stage("two") {
            steps{
                echo "two"
            }
        }
    }
}
原文件

计算节点 Agent

阶段 Stage

Restful 接口


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK