Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

04/01 記錄 #6

Open
simpsons01 opened this issue Apr 1, 2022 · 0 comments
Open

04/01 記錄 #6

simpsons01 opened this issue Apr 1, 2022 · 0 comments

Comments

@simpsons01
Copy link
Owner

simpsons01 commented Apr 1, 2022

更新commit staus

  • github actions + remote build triiger
    • 缺點
      • 要多接一段github actions
      • 要自己更新commit status
    • 優點
      • 不相依任何jenkins plugin, 比較不會因為jenkins更新後, plugin不相容出現非預期的問題
      • 文件還算詳細, 查閱上很方便
  • generic webhook trigger
    • 缺點
      • 還沒找到方法可以把Jenkinsfile放在source repo, 必須把Pipeline declarative script放置在jenkins console
      • 要自己更新commit status
      • 設定繁雜, 要自己設定一堆參數
      • webhook push 跟 pull request接到的參數是不一樣的
    • 優點
      • 可直接串github webhook
  • mutltibranch pipeline
    • 缺點
      • 文件寫的不太詳細, 如果出問題很難查
    • 優點
      • 設定簡單
      • 不需要自己更新commit status

jenkins-agent container node.js install

  • 使用 nvm 安裝 node
    • 缺點
      • 疑似會有被image volume蓋掉的問題要寫一堆指令來讓node work
    • 優點
      • 一定可以安裝到各個repo特定的node 版號
  • 使用 nodesource
    • 缺點
      • 只能安裝nodesource提供的版本, 沒辦法對齊repo指定版號
    • 優點
      • 安裝快速, 兩行指令搞定
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant