|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/morethan-100-jenkins-declarative-pipeline-examples-for-beginners/
课程评论:没有评论
**课程名称:** Jenkins 声明式流水线:100+ 实用示例 **课程概述:** 本课程深入教授 Jenkins 声明式流水线(Pipeline as Code),一种通过代码创建 Jenkins 作业的高级功能。声明式流水线的核心优势在于能够借助版本控制工具(如 SVN 或 Git)对流水线脚本进行版本管理,从而实现代码的追溯和协作。 课程将通过超过 100 个实用示例,覆盖以下关键主题: * **JIRA 集成:** * 构建失败时创建 JIRA 票据。 * 关闭 JIRA 票据。 * 搜索 JIRA 票据。 * 以及更多 JIRA 自动化操作。 * **命令执行:** * 执行 Windows 批处理(bat)命令。 * 执行 Shell 命令。 * **条件化执行:** * 根据提交信息或已提交的文件来决定是否执行特定阶段。 * **构建审批与暂停:** * 暂停构建并等待特定用户的批准。 * 暂停作业以接收用户输入。 * **代码提交与版本控制:** * 成功构建后自动提交代码到 Git。 * 与 SVN 协同工作。 * **流水线配置与管理:** * 参数(Parameters)、变量(Variables)和选项(Options)的使用。 * POST Actions 的多种示例及执行顺序。 * 理解流水线中不同颜色的含义。 * 解释各种变量的含义,区分用户自定义变量和系统定义变量,以及变量的作用域。 * 区分单引号和双引号的使用。 * 深入讲解各种参数类型:String, Text, Boolean, Choice, Password, File。 * BuildDiscarder 的作用。 * 如何修改构建结果。 * **Java 项目构建:** * 使用不同 JDK 版本运行 Java 程序。 本课程旨在帮助学员熟练掌握 Jenkins 声明式流水线的用法,并通过丰富的案例学习如何在实际 CI/CD 流程中进行自动化配置和管理。
Jenkins Declarative Pipeline script or Pipeline as a code is an advance feature which is used to create Jenkins Jobs with the help of the code. The main advantage with Declarative Pipeline script is that we can do versions of our code with the help of any version control tools (SVN or GIT..).In this course we'll see the 100+ examples which covers the following topics. 1. JIRAHow to Create a Ticket if build failedHow to Close the TicketHow to Search ticketsand more.....2. How to execute bat commands and shell commands.3. Execute Stage based on the commit message/committed files.4. Pause the build and Wait for the approval from specific user.5. Commit code to GIT if build success6. How to work with SVN.7. Parameters, Variables, Options, etc.8. Pause job to read input from user.9. Multiple examples on POST.10. What are the different colors that indicates in the pipeline11. what are the variables means.12. Difference between user defined and system defined variables 13. what are the scopes of the variables14. Difference between Single and Double quotes15. Parameters: String, Text, Boolean, Choice, Password, File16. what is the use of BuildDiscarder17. How to change build result18. POST and order of Blocks19. How to Run Java program with Different JDK versionsetc