Category: Jenkins
[Jenkins] Create Jenkins Job through API
[Jenkins] Jobs will be created automatically by Jenkins Job Builder
Bạn cũng đã thấy việc tạo các job trên jenkins thì khá là phức tạo và nếu bạn không có 1 công cụ (tool) thì bạn cần chỉnh sửa rất nhiều và công việc thì lập đi lập lại. Bằng các sử dụng jenkins builder thì công việc sẽ as Code hơn và auto hơn!…
Read More “[Jenkins] Jobs will be created automatically by Jenkins Job Builder” »
[Jenkins] Create User Jenkins and setup permission this one.
[Jenkins] How do you show password or decrypt credentials on Jenkins
Hello này mình mới được chỉ 1 chít để show các password trên jenkin.Kiểu như bạn quên mật khẩu và muốn lấy lại. Link tham khảo:https://devops.stackexchange.com/questions/2191/how-to-decrypt-jenkins-passwords-from-credentials-xml Ý hà mình được chỉ 1 script bạn chỉ cần dán vào console là được Reference Link:https://stackoverflow.com/questions/34795050/how-do-i-list-all-of-my-jenkins-credentials-in-the-script-console
[Jenkins] Build-Self Jenkins agent Docker and Runing a view Apps on this ones
Khi này thì mình đã build jenkins agent bằng docker để thêm 1 tool của mình vào jenkins như là:– appium– adb– và vân vân. Chúng ta cần build docker image có jenkins agent sau đó cài các apps nhữ đã nêu ở trên. 1) Build-Self a docker image Of Jenkins-agent tiếp đến chúng ta…
Read More “[Jenkins] Build-Self Jenkins agent Docker and Runing a view Apps on this ones” »
[Jenkins] Lưu ý nho nhỏ trong jenkins
Filter by name Anh em sẽ thường filter branch trên github để thực hiện CI/CD Ví dụ nếu mà anh em muốn để thả là master-nim, master-ahihithì phải để như này mới được: master-.*Còn để như này sẽ không ăn master-*
[Jenkins] Using pod template to run Jenkins agent on Kubernetes.
Lại là 1 ngày đẹp trời mình run pipeline sau: workspaceVolume: persistentVolumeClaimWorkspaceVolume(claimName: ‘jenkins-controller’,readOnly: false) Giờ chúng ta làm sao để config workspaceVolume.Đầu tiên bạn xem con jenkins controller đang được config với PVC nào? Nếu bạn gặp lỗi!!!! Timed out waiting for websocket connection. You should increase the value of system property https://gvasanka.medium.com/workaround-lets-solve-the-jenkins-slave-connection-issue-with-the-jenkins-kubernetes-plugin-b0fb78f9aade Bạn có…
Read More “[Jenkins] Using pod template to run Jenkins agent on Kubernetes.” »
[Jenkins] Scripted Pipeline lesson 19: Triggers _ Upstream
Post này demo thực hiện việc job A sau khi chạy success thì trigger cho job B chạy. Giả dụ job unit-test chạy thành công sẽ thực hiện build. Giờ mình tạo 1 job build he!! Giờ mình thực hiện ấn build bên job unit-test:
[Jenkins] Scripted Pipeline lesson 18: Triggers _ PollSCM
Bài này cấu hình cho jenkins liên tục triggers git. Nếu commit thay đổi thì thực hiện action build. Scripted Pipeline như sau: