In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on the "Jenkis build task configuration tutorial", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the "Jenkis build task configuration tutorial"!
Why use Jenkis in the first place? what are its characteristics?
A quote from the official website
Https://jenkins.io/zh/
Build greatness and be omnipotent
Jenkins is a leader in open source CI&CD software, providing more than 1000 plug-ins to support build, deployment, automation, and meet the needs of any project.
advantage
1. As an extensible automation server, Jenkins can be used as a simple CI server or as a continuous delivery center for any project. 2.Jenkins is a stand-alone Java-based program that can be run immediately, including Windows,Mac OS X and other Unix-like operating systems. (personally prefer war deployment, portability is relatively strong) 3. By updating more than 1000 plug-ins in the center, Jenkins integrates almost all of the tools in the continuous integration and continuous delivery tool chain. 4.Jenkins can be extended through its plug-in architecture, providing almost unlimited possibilities for what Jenkins can do. 5.Jenkins can easily distribute work across multiple machines, helping to drive build, test, and deployment more quickly across multiple platforms. 6.Jenkins can be easily set up and configured through its web interface, including instant error checking and built-in help.
1. Installation of Jenkis
1. Resources to be prepared
A) jdk1.8.0_131 b) apache-tomcat-8.5.46c) jenkins.war
two。 Build an environment
A) configure java environment variable to open: my computer-> Properties-> Advanced system Settings-> Environment variable New JAVA_HOME value C:\ Program Files\ Java\ jdk1.8.0_131 (jdk directory path) Edit Path, add% JAVA_HOME%\ bin; before the new CLASSPATH value. Cmd runs java-version (if the java version proves the configuration is successful) b) run Tomcat to put jenkins.war in the D:\ soft\ apache-tomcat-8.5.46\ webapps folder. Go to the D:\ soft\ apache-tomcat-8.5.46\ bin folder and double-click to execute the startup.bat file. The word successful at the end of the pop-up window indicates success! C) Test run Jenkis because the default port of Tomcat is 8080, open the browser and enter http://localhost:8080/jenkins
3. Start the service
II. The use of Jenkis (take the Android+SVN+Gradle project as an example)
1. Prepare resources (Android project, SVN address, Gradle version, AndroidSDK
A) Android project, where the name of the project is Deebo (Android-studio development tools) b) submit the project to SVN (not to elaborate on SVN building here, please ignore this step in SVN) to view the SVN address of the project: TortoiseSVN- > Repo-brower Note: project submitted to SVN If there are sensitive files that are ignored, please copy to the workspace configured by Jenkis later c) Gradle version is 5.4.1 address https://services.gradle.org/distributions/gradle-5.4.1-all.zipd) AndroidSDK this is the native path D:\ soft\ sdk e) Open Jenkis with a browser here you need to find the initial password under the specified path to unlock the login Directly Copy prompt the path to the address bar to view the password. Let's start installing the plug-in..)
two。 Download and install the plug-in
A) install the default recommended plug-in first (the installation process needs to be downloaded online. Wait patiently. B) after the plug-in is successfully installed, you will be prompted to create the first administrator user to facilitate later debugging of the configuration item. C) instance configuration, default is good d) restart Tomcat (because you want to load the plug-in you just installed) login.
3. Create a task
A) create a new task AutoBuild and select the first one.
4. Configuration
"Advanced"
Advanced-"
Configure AndroidSDK
5. Preliminary construction
After the above configuration, you can build.
. Other functions need to be studied on their own. Delayed replenishment
6. Create a scheduled build task
7. Operation after successful construction (archiving, uploading to server)
Third, about the unattended Jenkis
1. Automatic verification of self-booting service / network boot
At this point, I believe that you have a deeper understanding of the "Jenkis build task configuration tutorial", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.