Posts
Analyzing the Lightweight Checkout Problem in Jenkins
· β˜• 5 min read
1. What Problem We Hit A Jenkins build log threw an error: 1 2 3 4 5 6 Started by user admin Lightweight checkout support not available, falling back to full checkout. Checking out git https://github.com/shaowenchen/pipeline-test.git into /var/jenkins_home/workspace/abc@script to read Jenkinsfile ... ... Unable to access '.git/index.lock': File exists. Cause analysis:

Build Artifacts and Cache in Jenkins
· β˜• 5 min read
In a CICD flow, there are two main kinds of things that need to be saved: build artifacts and caches. Build artifacts are the final execution result, and caches exist to speed up the next build. This post mainly describes how to archive build artifacts and caches in Jenkins, along with a hands-on example backed by object storage.

Jenkins Plugin Development
· β˜• 7 min read
Using Jenkins always means dealing with all kinds of plugins. To practice DevOps better, we should also be capable of developing plugins ourselves, so the whole process can converge inside Jenkins. 1. Jenkins Plugins 1.1 The Plugin Ecosystem Jenkins’ predecessor Hudson started in 2004, and 16 years on it is still a mainstream CI/CD engine.

Kubernetes Windows Nodes Dynamically Provide Jenkins Agents
· β˜• 2 min read
Building on the previous two documents, Creating Jenkins Slaves Dynamically on Kubernetes and Adding Windows Nodes to Kubernetes to Provide Dynamic Jenkins Build Agents, this document mainly attempts to dynamically provide Windows build agents on Kubernetes. 1. Adding Pipelines For the Kubernetes and Jenkins integration part, refer to the two documents above; here we simply create two pipelines to test with.

R&D Is Like Training Troops, Operations Is Like Deploying Them
· β˜• 4 min read
1. Thought Drives Behavior Thought drives behavior, and behavior produces results. How we treat people, handle things, and approach affairs all come from culture, and they do not leap forward just because technology advances rapidly. The Chinese nation, with its long history, has accumulated remarkably resilient intellectual wisdom. Dynasties rose and fell, regimes changed, and none of it could bring her down.