In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to implement Jenkins and Rainbond docking deployment applications. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Automating CI and CD practices for Jenkins services built on Git repositories and mirrors Overview
If you now have your own CI workflow and want to deploy your app continuously in a cloud gang, this article will guide you through deploying your app to a cloud gang and setting up continuous deployment. Given that Jenkins is currently the mainstream continuous integration tool, and that it is very mature in terms of source testing and Pipline, we provide an integration solution for Jenkins. In general, our source code is built and integrated by Jenkins, and the resulting application may be in source format or mirror image. Rainbond supports continuous deployment of applications. Below we will explain how jenkins and rainbond interface deploy source code and mirror format applications to cloud help.
Build your own continuous deployment process
There are a wealth of apps available for installation in the Cloud Gang app marketplace that you can use to build your own workflow. We use GitLab or GitHub open source code repository, Jenkins integration tool and Rainbond interface to implement CI and CD.
source code
We take Spring Boot demo as an example, github.com/ITboy6/spring-boot-mysql-demo docking point is jenkins for code detection (can be achieved using Sonar plug-in), after building the packaged jar package and the required files in the target directory, rainbond construction only need to pull a target directory, automatic source deployment.
1. Jenkins configuration
Jenkins plugins required for installation: System Management--> Plugins Management--> Plugins required for installation
Jenkins Configuration Test Project: New Task
This step is to put the required files and packaged jar packages into the target directory and push them to the code repository. Use API to trigger rainbond auto-build.
2. Rainbow Configuration
Need to have a well-created source code application
How to trigger auto-build using APIs
By turning on the url returned by API automatic construction, POST method calls API, carrying the secret key to trigger API automatic construction. The secret key can be customized.
API usage:
curl -d '{"secret_key":""}' -H "Content-type: application/json" -X POST
Add to Jenkins build flow
mirror
When Jenkins is built, it will produce a mirror and push it to DockerHub.
Create a mirror format app in Cloud Gang
Generate a Webhook that triggers the mirror repository in Cloud Gang, add the webhook to DockerHub, and make DockerHuab call the API after each update mirror is completed.
Thank you for reading! About "how to implement Jenkins and Rainbond docking deployment application" this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.