当前位置:网站首页>Jenkins' user credentials plug-in installation
Jenkins' user credentials plug-in installation
2022-07-07 00:17:00 【Wang zewen 666】
Jenkins User certificate plug-in installation
1. Voucher configuration
1.1 Voucher introduction
Credentials are used to store database passwords that need ciphertext protection 、gitlab Password information 、docker Private warehouse password, etc , In order to Jenkins It can interact with these third-party applications .
1.2 Installation of certificate plug-in
Here we need to install a file named Credentials Binding Plugin Plug in for
// We first click on Management Jenkins, Then click plug-in management

// Then look here to see if there is any plug-in we want , Because I am installing Jenkins The plug-in has been installed since , So there's no need to install , If it is not installed, you can go to the place of renewable plug-ins to find .

// After installation, you can perform the following operations .

// Find the overall situation in the credentials , Then click Add credentials 
Here we explain the meaning of these six credentials
- The first one is :Username with password This is commonly used to refer to the user name and password we often say
- The second kind :GitHub This is a newly added credential , Rarely used for the time being
- The third kind of :SSH Username with private key This is also commonly used SSH Remote users and keys
- A fourth :Secret file Text files that need to be kept secret , When using Jenkins The file will be copied to a temporary directory , Set a variable to the file , When the build is finished , The copy of Secret file It will be deleted
- The fifth :Secret text: An encrypted text string that needs to be saved , Like a nailing robot or GitHub Of api token
- 6 kinds of :Certificate By uploading the certificate file
2. Integrate Git
in order to Jenkins Can pull code , Need to install git The environment and Jenkins For the git plug-in unit .
Environmental statement : System is Redhat8.2
2.1 install git Environmental Science
[[email protected] ~]# yum -y install git // install git
[[email protected] ~]# git --version // see git Version of
git version 2.27.0
2.2 install git plug-in unit
// Because I have installed , So if you don't have one, you can install it in the optional plug-in 

2.3 To configure Jenkins Of git Environmental Science
// First, we add a credential 


// Click on the management Jenkins, Then click to go to the global tool configuration 
// Click Select git
// here Git My name is random ,Path to Git executable Here days git perhaps git All the completion paths are OK , Finally, click save 
// Here we have used code cloud as an example
// First, we will build a new warehouse 
// The following information is optional , After the warehouse is created, change it to common 
// After the creation is completed, we will carry out the following operations , Click new task 
// The task name is optional , Select first , Click OK again 
// Here our URL Fill in the new warehouse address of the cloud , Finally, click save 
// Let's go back to the panel and click build 
// At this time, we click the task name to view .
// Finally, click console output 
// appear success That is success 
[[email protected] Jenkins]$ pwd
/home/jenkins/.jenkins/workspace/Jenkins
[[email protected] Jenkins]$ ls
README.en.md README.md
We test by creating new files 
// Click Submit after adding 
// Here we click build now 
[[email protected] Jenkins]$ ls
Jenkins_test README.en.md README.md
[[email protected] Jenkins]$ cat Jenkins_test | sort
hello world
2.4 Use credentials to build git
// At this time, we create a new warehouse 
// Create a task 
// Select user credentials , Then click save .
// Click build now 
// Building a successful 

// Through comparison, we can find that the content is the same
[[email protected] Jenkins01]$ pwd
/home/jenkins/.jenkins/workspace/Jenkins01
[[email protected] Jenkins01]$ cat README.md
# Jenkins01
#### Introduce
Jenkins Private warehouse test
边栏推荐
- 使用yum来安装PostgreSQL13.3数据库
- Use Yum or up2date to install the postgresql13.3 database
- Data operation platform - data collection [easy to understand]
- How about the order management of okcc call center
- Rails 4 asset pipeline vendor asset images are not precompiled
- 在docker中快速使用各个版本的PostgreSQL数据库
- TypeScript中使用类型别名
- DAY FIVE
- 智能运维应用之道,告别企业数字化转型危机
- Hydrogen future industry accelerates | the registration channel of 2022 hydrogen energy specialty special new entrepreneurship competition is opened!
猜你喜欢

Liuyongxin report | microbiome data analysis and science communication (7:30 p.m.)

MySQL learning notes (mind map)

GPIO简介

自动化测试工具Katalon(Web)测试操作说明

MVC and MVVM

Pytest multi process / multi thread execution test case

37頁數字鄉村振興智慧農業整體規劃建設方案

从外企离开,我才知道什么叫尊重跟合规…

一图看懂对程序员的误解:西方程序员眼中的中国程序员

1000 words selected - interface test basis
随机推荐
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
DAY FIVE
Automatic test tool katalon (WEB) test operation instructions
2022年PMP项目管理考试敏捷知识点(9)
Testers, how to prepare test data
刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
使用源码编译来安装PostgreSQL13.3数据库
1000字精选 —— 接口测试基础
Compilation of kickstart file
After leaving a foreign company, I know what respect and compliance are
互动滑轨屏演示能为企业展厅带来什么
17、 MySQL - high availability + read / write separation + gtid + semi synchronous master-slave replication cluster
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
1000 words selected - interface test basis
Encryption algorithm - password security
DAY SIX
Interesting wine culture
【CVPR 2022】目标检测SOTA:DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
File and image comparison tool kaleidoscope latest download