当前位置:网站首页>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
边栏推荐
- PDF文档签名指南
- Penetration test --- database security: detailed explanation of SQL injection into database principle
- Rider离线使用Nuget包的方法
- MATLIB reads data from excel table and draws function image
- DAY FIVE
- Why should a complete knapsack be traversed in sequence? Briefly explain
- 量子时代计算机怎么保证数据安全?美国公布四项备选加密算法
- After leaving a foreign company, I know what respect and compliance are
- DAY FOUR
- Who said that new consumer brands collapsed? Someone behind me won
猜你喜欢
Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]
DevOps可以帮助减少技术债务的十种方式
Racher integrates LDAP to realize unified account login
DAY TWO
Wind chime card issuing network source code latest version - commercially available
2022/2/12 summary
How rider uses nuget package offline
Imeta | Chen Chengjie / Xia Rui of South China Agricultural University released a simple method of constructing Circos map by tbtools
DAY FOUR
Rider离线使用Nuget包的方法
随机推荐
Use package FY in Oracle_ Recover_ Data. PCK to recover the table of truncate misoperation
TypeScript中使用类型别名
The programmer resigned and was sentenced to 10 months for deleting the code. Jingdong came home and said that it took 30000 to restore the database. Netizen: This is really a revenge
37页数字乡村振兴智慧农业整体规划建设方案
DAY THREE
DAY ONE
互动滑轨屏演示能为企业展厅带来什么
Who said that new consumer brands collapsed? Someone behind me won
Everyone is always talking about EQ, so what is EQ?
What can the interactive slide screen demonstration bring to the enterprise exhibition hall
[vector retrieval research series] product introduction
什么是响应式对象?响应式对象的创建过程?
基于SSM框架实现的房屋租赁管理系统
GPIO簡介
Competition between public and private chains in data privacy and throughput
How about the order management of okcc call center
pinia 模块划分
Leecode brush questions record sword finger offer 43 The number of occurrences of 1 in integers 1 to n
What is AVL tree?
PXE server configuration