iT邦幫忙

2023 iThome 鐵人賽

DAY 6
0
DevOps

CI/CD系列 第 6

Day6:查看流水線

  • 分享至 

  • xImage
  •  
首先先進入gitlab,選擇專案的選項 再來點開你CI/CD專案
在來這邊會顯示你的提交&分支&標籤&專案儲存容量&環境 再來選擇建置裡面的流水線,查看當前狀態

可以點進去專案裡面看到自己執行的結果

Running with gitlab-runner 16.1.0 (865283c5)
  on https://gitlab.com/ RwqB7q_7t, system ID: s_c74693d52669
Preparing the "docker" executor
00:32
Using Docker executor with image alpine:latest ...
Pulling docker image alpine:latest ...
Using docker image sha256:c1aabb73d2339c5ebaa3681de2e9d9c18d57485045a4e311d9f8004bec208d67 for alpine:latest with digest alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 ...
Preparing environment
00:11
Running on runner-rwqb7q7t-project-47964488-concurrent-0 via ubuntu-pve...
Getting source from Git repository
00:09
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/botingg/ci-cd/.git/
Checking out f73e7b75 as detached HEAD (ref is main)...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:14
Using docker image sha256:c1aabb73d2339c5ebaa3681de2e9d9c18d57485045a4e311d9f8004bec208d67 for alpine:latest with digest alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 ...
$ echo "Compiling the code..."
Compiling the code...
$ echo "Compile complete."
Compile complete.
$ chmod +x ./run.sh
$ ./run.sh
run in script
total 24
drwxrwxrwx    4 root     root          4096 Jul 27 07:28 .
drwxrwxrwx    4 root     root          4096 Jul 26 12:09 ..
drwxrwxrwx    6 root     root          4096 Jul 27 07:28 .git
-rw-rw-rw-    1 root     root          1056 Jul 27 07:28 .gitlab-ci.yml
drwxrwxrwx    4 root     root          4096 Jul 26 12:09 app
-rwxrwxrwx    1 root     root            55 Jul 27 07:19 run.sh
run in script again
Cleaning up project directory and file based variables
00:11
Job succeeded

最後一段有說明成功代表這個專案是可以執行的
如果錯誤的話下面會跳出一段error 並且告訴你說錯在哪


上一篇
Day5:介紹流水線
下一篇
Day7:階層指令
系列文
CI/CD30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言