# 【Jenkins】相關連結

#### Jenkins入门 pipeline (官方文檔)  
[https://www.jenkins.io/zh/doc/book/pipeline/syntax/](https://www.jenkins.io/zh/doc/book/pipeline/syntax/)  
[https://www.jenkins.io/doc/book/pipeline/](https://www.jenkins.io/doc/book/pipeline/)

- [使用 Shared Libraries](https://jenkins.xfoss.com/pipeline/shared-libraries.html)  
    [Getting Started With Shared Libraries in Jenkins](https://www.youtube.com/watch?v=Wj-weFEsTb0)  
    [Using Resource Files From a Jenkins Shared Library](https://www.youtube.com/watch?v=eV7roTXrEqg)
- [pipline語法](https://jenkins.xfoss.com/pipeline/syntax.html)  
    [What Is the Difference Between Scripted and Declarative Pipeline](https://www.youtube.com/watch?v=GJBlskiaRrI)

##### 【udemy】‎持續集成（Continuous Integration with Jenkins）---從初學到精通‎  
[Jenkins.pdf](https://bookstack.treemanou.com/attachments/6)

##### 【Docker Hub】Jenkins 官說明  
[Jenkins - Official Image | Docker Hub](https://hub.docker.com/_/jenkins?tab=description)

##### Jenkins+Github觸發器  
[Jenkins : GitHub Plugin (jenkins-ci.org)](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin)

##### PMD Jenkins plugin:

[https://wiki.jenkins-ci.org/display/JENKINS/PMD+Plugin](https://wiki.jenkins-ci.org/display/JENKINS/PMD+Plugin)

##### Findbugs Jenkins Plugin:

[https://wiki.jenkins-ci.org/display/JENKINS/FindBugs+Plugin](https://wiki.jenkins-ci.org/display/JENKINS/FindBugs+Plugin)

---

[Postman+Newman+Git+Jenkins介面自動化測試 | IT人 (iter01.com)](https://iter01.com/509070.html)

---

##### Jenkins pipeline

[\[Day 27\] Jenkins (1) - iT 邦幫忙::一起幫忙解決難題，拯救 IT 人的一天 (ithome.com.tw)](https://ithelp.ithome.com.tw/articles/10209290)

##### 在 Jenkins 容器中執行 docker 指令

[Jenkins 容器中執行 docker 指令：叡揚部落格 (gss.com.tw)](https://www.gss.com.tw/blog/jenkins-docker)

```shell
docker run -d --name test-jenkins \
--user root -p 8080:8080 \
-p 50000:50000 \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkins/jenkins
```

```shell
docker exec -it --user root test-jenkins /bin/bash
```

```shell
apt-get update && apt-get -y install apt-transport-https ca-certificates \
curl gnupg2 software-properties-common && \
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; \
apt-key add /tmp/dkey && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" && \
apt-get update && apt-get -y install docker-ce
```