Linux environment to build (d) - jenkins + gitlab + jmeter practice under Linux environment to build (three) - jmeter + ant configuration

After the introduction of the first three Bowen, jenkins + gitlab + jmeter automation framework interface to build successful, can be seen in detail

Linux environment to build (a) - java, tomcat configuration

Linux environment to build under (b) - jenkins + gitlab configuration

Linux environment to build (three) - jmeter + ant configuration

Before the network has access to a lot of information, a detailed talk about the entire process of building process still somewhat vague, their own use of leisure time, the entire process to go through, and success.

Before using gitlab, git a bit of knowledge, you can learn this on their own, a lot of information online.

gitlab use

1. The client can install git, self-install

2. Create a warehouse on gitlab, create your own

3. Create a local repository

①. Create a new folder, mkdir

②. Create a new file

③. Enter git init, set warehouse

④. Submit git add filename

⑤. The final submission git commit

Submit code is from the local warehouse to the above steps

Native code will eventually be submitted to the remote repository as follows:

4. Add a remote repository

Run command under local repository git remote add hong remote warehouse address

5. Local submit to a remote repository

git push hong master

The above operation, the local code will be able to upload to a remote repository.

jenkins use

jenkins is configured, see

Jenkins environmental structures (2) - to build jmeter + ant + jenkins automated testing environment

Jenkins environmental structures (3) - configured to automatically send messages

Jenkins environmental structures (4) - configuring the timing Construction

Jenkins environmental structures (5) - Construction and Jmeter before completion of parameter and deletion constructs

Jenkins environment to build (6) - Change automated testing report style

Basic configuration, will not repeat them, you can see the above blog.

This again, is detailed contents of the source configuration management

1. Enter the repository URL

Prompt will appear the following screenshot, this is normal, because it is not configured with credentials

2. Configure credentials

① System Settings> Configure credentials

② credentials> System> Global Credentials

③ Add Credential

④ set the credentials data

凭据类型选择SSH,范围设置为全局,key输入私钥,私钥生成:在配置gitlab账号时,会生成对应的私钥。

⑤到job中配置

保存数据后,到job中构建任务

job构建

在控制台中查看日志,可查看到拉取git中的数据进行job构建

到此,整个流程就走完了,这个也只是个简单的实践任务,离实际项目使用,还需进一步优化,看了系列博文的朋友,希望对你们有所帮助。我也是初探,如果错误之处,欢迎指正。

 

本文仅代表作者观点,系作者@温一壶清酒发表。
欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
文章出处:http://www.cnblogs.com/hong-fithing/

Guess you like

Origin www.cnblogs.com/hong-fithing/p/11073507.html