หลังจาก Blog 2 ตอนก่อนหน้าที่มี
- อธิบาย Jenkins Controller and Agents Architecture คือ อะไร
- ตัวอย่างการ Setup ระหว่างเรื่อง Controller (CentOS Stream) และ Agents (Windows 10)
ข้อสังเกตุ
![](https://i0.wp.com/naiwaen.debuggingsoft.com/blog/wp-content/uploads/2022/07/1125620.jpg?resize=1024%2C768&ssl=1)
- ฝั่ง Controller
- ต้องลง Plugin เหมือนกับฝั่ง Agents
- ต้องกำหนด Environment เหมือนกับฝั่ง Agents
- ฝั่ง Agents
- เมื่อถูกสั่งงานจาก Controller ตัว Agents ทำงานครับ แต่เราจะไม่สามารถตรวจสถานะของงานที่สั่งจาก Controller ได้จากเครื่อง Agents ครับ
- ถ้ามีเคสที่ต้องมาสั่ง Job ที่อยู่ที่ Jenkin Agents ให้ทำงาน ต้องตรวจสอบ Resource ด้วยว่า ไม่ชนกับ Job ที่สั่งมาจาก Controller ครับ
สรุป
- จากที่ลองตัว Jenkins ใน Model Controller and Agents เท่าที่สังเกตุมา Controller มันจะไม่ได้ส่งงานทั้งชิ้นให้ Agents ทำงานครับ
- แต่จะเป็นการทำงานตามคำสั่งที่เขียนใน JenkinsFile ที่ละส่วนที่ Controller และส่งไปให้ Agents ทำงานครับ อารมณ์มันจะเหมือน ssh เข้าไปทำงานที่เครื่อง Agents ครับ
Discover more from naiwaen@DebuggingSoft
Subscribe to get the latest posts sent to your email.