|
| 1 | +# Deploy and Initialize IBM i CI/CD |
| 2 | + |
| 3 | +## Deploy IBM i CI/CD from Merlin platform |
| 4 | + |
| 5 | +* Install IBM i CI/CD in the **Catalog** from Merlin platform |
| 6 | + |
| 7 | + * Follow the **Installation Application** wizard to complete the installation of IBM i CI/CD. |
| 8 | +  |
| 9 | + |
| 10 | +* Launch IBM i CI/CD from Merlin platform |
| 11 | + |
| 12 | + * Under **Overview > Quick Launch**, click to launch **IBM i CI/CD** directly. |
| 13 | + * Under **Tools > Deployed Tools**, right click and launch **IBM i CI/CD** in context menu. |
| 14 | + |
| 15 | +## Initialize Jenkins in IBM i CI/CD GUI |
| 16 | +Jenkins is the automation server behind IBM i CI/CD which runs the actual build and deploy jobs. Both internal Jenkins and external Jenkins are supported in IBM i CI/CD, internal Jenkins comes with IBM i CI/CD and external Jenkins can be existing Jenkins. |
| 17 | + |
| 18 | +Both internal and external Jenkins must be initialized before using in IBM i CI/CD. While the initialization of external Jenkins only saves the information (Jenkins URL, username, password, and API token) for authentication with Jenkins REST API into Merlin platform, the initialization of internal Jenkins will do the actual configuration of Jenkins. |
| 19 | + |
| 20 | +Use **Jenkins Configuration > Jenkins Server > Initialize Jenkins** to open the **Initialize Jenkins** wizard. |
| 21 | +**Note**: **Initialize Jenkins** requires an admin user role. |
| 22 | +* Initialize internal Jenkins |
| 23 | + * Select **Use internal Jenkins server** in step **Select Jenkins server type**. |
| 24 | +  |
| 25 | + |
| 26 | + * Input Jenkins username and password in step **Initialize default Jenkins server**. |
| 27 | + The user will be created in internal Jenkins and used for later authentication with Jenkins. |
| 28 | +  |
| 29 | + |
| 30 | + * Wait for the initialization of internal Jenkins to finish. Jenkins server information will be refreshed and the **Connectivity** will be **Available** if the initialization is finished successfully. |
| 31 | +  |
| 32 | + |
| 33 | +* Initialize external Jenkins |
| 34 | + * Select **Use external Jenkins server** in step **Select Jenkins server type**. |
| 35 | +  |
| 36 | + |
| 37 | + * Input external Jenkins server information in step **Specify Jenkins server information**. |
| 38 | +  |
| 39 | + * **Note:** Use the **Generate API token** button to get the **API token** after filling in the Jenkins server URL, username, and password. The API token is required when authentication with Jenkins server REST API. |
| 40 | + * **Note:** Use the **Test TLS** button to verify if the TLS is configured on the external Jenkins server and import the CA certificate into the trust store if it is not. |
| 41 | + * Wait for the initialization of external Jenkins to finish. Jenkins information will be refreshed and the **Connectivity** will be **Available** if the initialization process is finished successfully. |
| 42 | +* **Note**: Another option to set external Jenkins is using the **Edit selected Jenkins server** button. Add an available Jenkins template in Merlin platform first and select the added Jenkins template. Use the **Test TLS** button to verify if the TLS is configured on the selected Jenkins server and import the CA certificate into the trust store if it is not. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +## Integrate ARCAD in IBM i CI/CD GUI |
| 48 | + |
| 49 | +Integrate ARCAD will enable the capability to communicate with ARCAD builder server by installing three ARCAD plugins in Jenkins, including ARCAD-Commons Plugin, ARCAD-Builder Plugin, and ARCAD-Macro Execution Plugin. |
| 50 | + |
| 51 | +Use **Jenkins Configuration > ARCAD Integration > Enable ARCAD Integration** to open the **Enable ARCAD Integration** dialog. |
| 52 | + |
| 53 | +**Note**: **Enable ARCAD Integration** requires an admin user and only supports internal Jenkins. The integration process will overwrite all the configuration of ARCAD-Builder Plugin and ARCAD-Macro Execution in internal Jenkins. |
| 54 | + |
| 55 | +**Note:** Currently IBM i CI/CD only supports the configuration of ARCAD builder server. The configuration of ARCAD Servers for ARCAD-Macro Execution Plugin is not supported yet while the ARCAD-Skipper CLI will be put under default location ```/merlin/cicd/gui/skipperCLI```. If the user wants to utilize the functionality of ARCAD-Macro Execution Plugin, use it in Jenkins GUI directly. |
| 56 | + |
| 57 | +* Enable ARCAD integration |
| 58 | + |
| 59 | + * Input the ARCAD builder URL, and use **Test TLS** to verify if the TLS is configured on the ARCAD builder server and import the CA certificate into the trust store if it is not. |
| 60 | + |
| 61 | + * Select ARCAD builder server credential in Jenkins credential list, add the credential first under **Jenkins Configuration > Manage Jenkins Credential**. |
| 62 | + |
| 63 | + * Wait for the ARCAR integration process to finish. And the ARCAD builder URL and selected credential name will be listed on ARCAD Integration page. |
| 64 | + * Use **Test Connection** to test the connectivity of ARCAD builder server. |
| 65 | +  |
| 66 | + |
0 commit comments