ข้ามไปยังเนื้อหา

This is the Stable version of the documentation. The latest version is experimental and under active development. You can use the version selector in the top-right menu to switch versions for this specific page, or click here to go to the latest version's homepage.

Build Issue

เนื้อหานี้ยังไม่มีในภาษาของคุณ

แก้ปัญหาด้วยการ Debug

Section titled “แก้ปัญหาด้วยการ Debug”

ในการกรณีที่ run pipeline แล้วติดปัญหาที่ stage build สามารถกดเข้าไปดูในการทำงานได้ ดังรูป

🖼️ [Screenshot Placeholder: 1.png]

หลังจากเข้ามาให้เลื่อนมาล่างสุดจะ log ระหว่างทำการ build จากรูปจะเห็นว่ามี error ดังนั้นให้ลองเข้าไปแก้ error ตามที่ log บอกมาก่อน

🖼️ [Screenshot Placeholder: 2.png - Build log error]

จาก error บอกว่ามีปัญหาที่เรียกไฟล์ไม่เจอที่ source/example/routes/example.routes.ts โดยให้ลองลบส่วนที่มีปัญหา ดังรูป

🖼️ [Screenshot Placeholder: 3.png]

เมื่อลอง build ใหม่พบสามารถ build ได้

🖼️ [Screenshot Placeholder: 4.png - Successful build log]

กรณีที่ไม่ต้องการ run pipeline ใหม่ สามารถทำการ run ขึ้นมาด้วยการใช้ docker build ขึ้นมาก่อน

docker build -t component .

กรณีที่ไม่สามารถ build ได้ แสดงว่าต้องทำการ debug ภายใน source code

กรณีที่สามารถ build ได้ หากสามารถทำการ build docker ขึ้นมาได้ แต่ไม่สามารถ build บน pipeline ได้อาจเกิดจากปัญหาที่ kankiko ไม่เจอไฟล์ ให้ลองเพิ่มไฟล์เข้ามาใน repository

Finished?

Use the below navigation to proceed