# Jenkins

用來做CI/CD (持續集成/持續交付)

## jenkins 的 java 版本問題

jenkins 限制部屬環境必須為 java 8

倘若版本不一致會跳出類似這個問題的訊息

[https://stackoverflow.com/questions/52516868/severe-running-with-java-class-version-53-0-but-52-0-is-required-error-with-je](https://stackoverflow.com/questions/52516868/severe-running-with-java-class-version-53-0-but-52-0-is-required-error-with-je)

## 如何更改使用的Port

cd 到 `jenkins` 的目錄

`java -jar jenkins.war --httpPort=9090`\


## jenkinsfile

參考資料:([https://jenkins.io/zh/doc/book/pipeline/jenkinsfile/](https://jenkins.io/zh/doc/book/pipeline/jenkinsfile/))

