当前位置:网站首页>fatal: unable to commit credential store: Device or resource busy
fatal: unable to commit credential store: Device or resource busy
2022-07-24 10:14:00 【oneslide】
Scene is jenkins Need to extract current commit Of tag, Run the command :
$ git fetch --tags -f
fatal: unable to commit credential store: Device or resource busy
Reasons for appearance
stay devops In the assembly line , structure job Its function is to kubernetes pod Accomplished ( Used jenkins kubernetes plug-in unit ).
however git It's a private warehouse , Run some git Command requires user name and password , I used it credential store.
namely :
git config --global credential.helper store
This command is simply to record the password to ~/.git-credentials Under the document .git store The plug-in will write the configuration to /root/.gitconfig.
You can take a brief look at the contents of these two files
- .git-credentials
http://root:<your_pass>@gitlab.test.com
- .gitconfig
[[email protected] customagent]# cat /root/.gitconfig
[credential]
helper = store
So follow the normal thinking , I mount two files into all the build containers , In this case , There is such a problem . Many processes access this file concurrently , There was this mistake .
How to solve ?
jenkins Provides a git plug-in unit , It can help us run some git command
// git-cloner yes jenkins username/password Type of secret
withCredentials([gitUsernamePassword(credentialsId: 'git-cloner', gitToolName: 'Default')]) {
sh 'git fetch --all'
sh 'git fetch --tags -f'
}
Post this clip to jenkins pipeline in , So pull to the remote tag list .
Next, through comparison tag Of md5 And the current md5, You can know the current commit Do you have tag.
边栏推荐
- Homologous policy solutions
- zoj-Swordfish-2022-5-6
- 2022, our small goal
- Looting (leetcode-198)
- 图模型2--2022-5-13
- Analysis of Kube proxy IPVS mode
- Basic SQL operations
- The best time to buy and sell stocks Ⅳ (leetcode-188)
- Jenkins deploys the project and prompts that the module package defined by him cannot be found
- [STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display
猜你喜欢

关联规则--2022年7月10日

Mysql database JDBC programming
![[STM32 learning] (10) stm32f1 general timer realizes pulse counter](/img/42/1f5104f923b1868dda23bcc425fc62.png)
[STM32 learning] (10) stm32f1 general timer realizes pulse counter

Detailed explanation of uninstalling MySQL completely under Linux

Curse of knowledge

Knapsack problem of dynamic programming -- three lectures on knapsack (01 knapsack, complete knapsack, multiple knapsack)

【二叉树先导】树的概念和表示方法

二叉树、二叉树排序树的实现及遍历

An article takes you to understand the operation of C language files in simple terms

图模型2--2022-5-13
随机推荐
Exception: pyqtgraph requires Qt version >= 5.12 (your version is 5.9.5)
C # +opencvsharp+wpf learning notes (I)
2022 trusted cloud authoritative assessment released: Tianyi cloud has obtained ten certifications and five best practices
Detailed explanation of uninstalling MySQL completely under Linux
OpenGL drawing simple triangles
Synchronized scope "concurrent programming"
[STM32 learning] (16) STM32 realizes LCD1602 display (74HC595 drive) - 4-bit bus
Selnium checks three conditions when it cannot locate an element
Add SSH key to bitbucket
Binary original code, inverse code, complement code
When the hot tea is out of stock, what does the new tea drink rely on to continue its life?
Arduino drive lcd1602a
2022, enterprise informatization construction based on Unified Process Platform refers to thubierv0.1
Cyclicbarrier and countdownlatch [concurrent programming]
[STM32 learning] (18) STM32 realizes LCD12864 display - parallel implementation of 8-bit bus
Jenkins deploys the project and prompts that the module package defined by him cannot be found
Looting (leetcode-198)
Interpretation of websocket protocol -rfc6455
How to solve the problem of robot positioning and navigation in large indoor scenes with low-cost solutions?
Dr. water 3