jenkins blueocean使用

jenkins blueocean使用

docker方式安装jenkins

docker pull jenkinsci/blueocean
docker volume create jenkins-data

创建jenkins-data卷,持久化存储jenkins的数据

docker run -d -it --name jenkins-tutorials --restart -u root -p 8080:8080 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v /root/jenkins:/home jenkinsci/blueocean

container内/home目录,映射到host目录/root/jenkins,可以将拉取的git项目存放在/root/jenkins/下,在容器的目录就变为/home/

容器运行后,访问http://localhost:8080
参考网址
https://jenkins.io/doc/tutorials/using-jenkins-to-build-a-java-maven-project/
https://jenkins.io/blog/2017/04/12/welcome-to-blue-ocean-dashboard/
下面是参考上面两篇文章,jenkins与github项目ci一览
jenkins主页面
homepage
blueocean页面
blueocean
simple-java-maven-app 项目pipeline
pipeline
pipelineactive
jenkins构建pipeline生成的Jenkinsfile
Jenkinsfile

Dive deep into Jenkins Blue Ocean and discover how easy creating a pipeline can be. You'll see how Blue Ocean provides a better user experience when designing, running, and visualizing pipelines. This book shows you its intuitive user interface and its powerful pipeline editor and how this makes it a tool for everyone. Beginning Jenkins Blue Ocean starts with an introduction to Blue Ocean, followed by a step-by-step guide on how to set it up. You'll learn how to create a pipeline for every branch and pull request on your Git, GitHub, and GitLab repositories. You'll experience the improved pipeline visualization and log diagnosis features in Blue Ocean. Later you will go beyond the visual pipeline editor to learn the declarative syntax and gain better control over your pipelines. Then, you'll take a look at some tools to enable you to write pipeline code in the declarative syntax. You will also learn to extend delivery pipelines with Jenkins shared libraries. What You Will Learn Discover Jenkins Blue Ocean and how to use it Create elegant pipelines using the visual pipeline editor Work with the declarative pipeline syntax Use tools that help you write declarative pipeline code Extend pipelines with Jenkins shared libraries Visualize pipelines from classic Jenkins in Blue Ocean Configure and view test results in Blue Ocean Accurately diagnose pipeline failures using improved pipeline visualization Create multibranch pipeline projects for your Git, GitHub, and GitLab repositories Who This Book Is For Those new to Jenkins who are looking for an easy introduction. The book will also be useful for readers familiar with classic Jenkins and would like to learn Jenkins Blue Ocean.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值