|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/building-java-using-gradle-on-jenkins/
课程评论:没有评论
**课程名称:** 使用 Gradle 和 Jenkins 构建 Java **课程概述:** 本课程旨在帮助学习者理清构建和交付软件过程中涉及的众多术语、技术和工具,特别专注于 Java 开发。课程将通过 Docker、Jenkins、Git 和 Gradle 的组合,深入讲解软件交付的各种选项。 课程的每个方面都配有 Git 存储库,包含详细说明和示例。学习者可以自行搭建开发环境来实践示例,或者将其作为深入了解 Java-Jenkins-Gradle 交付机制的参考。 课程结构从搭建基础开发环境开始,最终演示如何使用 Jenkins 声明式流水线执行 Gradle 构建。该过程将集成 Java、Maven、Jacoco 和 PMD 插件,并在所有质量门通过后,将生成的 Java 库发布到 Maven 存储库。 课程还涵盖了容器化、配置即代码、静态代码分析、单元测试、代码覆盖率和流水线即代码等核心概念。 **课程内容分解:** **第一部分:基础设施 (Infrastructure)** * **Git (via Github):** 设置 Git,学习通过 SSH 获取示例代码。 * **Docker and Docker Compose:** 安装 Docker 和 Docker Compose,以便在本地运行容器。 * **Jenkins (via Docker Compose):** 在本地容器中运行 Jenkins。 **第二部分:构建 Java (Building Java)** * **Building Java 101:** Java 代码如何被打包成 Jar 文件。 * **Gradle and the Java Plugin:** 使用 Java 插件进行测试和构建 Jar。 * **Gradle and Java Code Coverage:** 生成单元测试的代码覆盖率,并设置质量门。 * **Gradle and Java Static Code Analysis:** 运行 PMD 进行静态代码分析,并设置质量门。 * **Gradle and Java Library Publishing:** 将 Jar 文件发布到 Maven 存储库。 **第三部分:Jenkins 自动化 (Jenkins Automation)** * **Freestyle Job:** 使用 Freestyle Job 构建、测试和交付 Jar。 * **Scripted Pipeline:** 使用 Scripted Pipeline 构建、测试和交付 Jar。 * **Declarative Pipeline:** 使用 Declarative Pipeline 构建、测试和交付 Jar。
With so many terms, techniques, and tools available, navigating how about building and delivering software can be overwhelming. This course picks a path through that maze, specifically focused on Java, and walks through a set of those options for delivery. Specifically using a combination of Docker, Jenkins, Git, and Gradle. Every aspect of this course also comes with a Git repository that contains both details and the examples being discussed.Learners can follow along by running their own development environments for executing the examples, or just use this as a deep-dive explanation into the inner workings of Java-Jenkins-Gradle delivery. Either way, let working code be your guide. The course structure starts with setting up a basic development environment, and ends with using a Jenkins declarative pipeline to execute a Gradle build using the Java, Maven, Jacoco, and PMD plugins, that on the pass of all the quality gates publishes the resulting Java Library to a Maven Repository.It additionally covers the concepts of containerization, configuration as code, static code analysis, unit testing, code coverage, and pipelines as code. The course is otherwise divided into three sections:(1) InfrastructureGit via Github - Setting up Git so that you can use SSH to get the examples.Docker and Docker Compose - Installing Docker and Docker Compose to be able to run containers locally.Jenkins via Docker Compose - Running Jenkins locally in a container.(2) Building JavaBuilding Java 101 - The basics of how Java code is turned into a Jar.Gradle and the Java Plugin - Using the Java Plugin to test and build a Jar.Gradle and Java Code Coverage - How to generate code coverage for unit testing, and set a quality gate.Gradle and Java Static Code Analysis - How to run PMD, and set a quality gate.Gradle and Java Library Publishing - How to publish a Jar to a Maven Repository.(3) Jenkins AutomationFreestyle Job - Building, Testing, and Delivering the Jar using a Freestyle Job.Scripted Pipeline - Building, Testing, and Delivering the Jar using a Scripted Pipeline.Declarative Pipeline - Building, Testing, and Delivering the Jar using a Declarative Pipeline.