1) first prepare
Đầu tiên bạn cần cài con Jenkins và bạn cho nó 1 nhiệm vụ làm master.
tiếp đến cài 1 con jenkins và kết nối nó vào master
2) Hello world – Pipeline script



pipeline{
agent any
stages{
stage("Build"){
steps{
echo "Hello world"
}
}
}
}





3) Hello world – Pipeline Agent
3.1) agent = none


3.2 agent = slave label



pipeline{
agent{
label "k8s-permanent"
}
stages{
stage("Build"){
steps{
echo "Hello world"
}
}
}
}

3.3 Custom workspace
pipeline{
agent{
node{
label "k8s-permanent"
customWorkspace "/home/nimtechnology"
}
}
stages{
stage("Build"){
steps{
echo "Hello world"
}
}
}
}
Sem log nào
