Skip to content

Commit e7a27f8

Browse files
authored
Merge pull request #33 from IBM/workshop-cicd-cl-command
workshop cicd cl command
2 parents 677c13e + 67a571b commit e7a27f8

File tree

6 files changed

+182
-16
lines changed

6 files changed

+182
-16
lines changed

docs/workshop/05_build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Expand ARCAD view on the left: Compilation result for an Arcad Project creates a
4444

4545
<!-- div:left-panel -->
4646

47-
View logs (bottom view) with compilator warnings
47+
View `Problems` view with compilation messages
4848

4949
<!-- div:right-panel -->
5050

docs/workshop/06/cicd_r.png

88.7 KB
Loading

docs/workshop/06/cicd_t.png

152 KB
Loading

docs/workshop/06/cicd_u.png

112 KB
Loading

docs/workshop/06/cicd_v.png

113 KB
Loading

docs/workshop/06_cicd.md

+181-15
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ From `Home>Overview` on the Merlin dashboard, launch the `IBM i CI/CD` applicati
1515
<!-- panels:end -->
1616

1717
---
18+
### Define ARCAD Build
1819

1920
<!-- panels:start -->
2021

@@ -66,7 +67,7 @@ Uncheck `Upload source code`. Check `Select build server (template)` and choose
6667

6768
<!-- div:right-panel -->
6869

69-
![](06/cicd_e.png)
70+
![](06/cicd_g.png)
7071

7172
<!-- panels:end -->
7273

@@ -86,20 +87,6 @@ Click `Add Build Actions>Run an ARCAD-Builder build`
8687
<!-- panels:end -->
8788

8889

89-
---
90-
91-
<!-- panels:start -->
92-
93-
<!-- div:left-panel -->
94-
95-
Uncheck `Upload source code`. Check `Select build server (template)` and choose the existing template
96-
97-
<!-- div:right-panel -->
98-
99-
![](06/cicd_g.png)
100-
101-
<!-- panels:end -->
102-
10390
---
10491

10592
<!-- panels:start -->
@@ -157,6 +144,7 @@ Click `Yes` to save the task
157144
<!-- panels:end -->
158145

159146
---
147+
### Run ARCAD Build
160148

161149
<!-- panels:start -->
162150

@@ -228,3 +216,181 @@ The Build results show the final status. Additional details are provided by che
228216

229217
<!-- panels:end -->
230218

219+
---
220+
221+
### Define CL Command
222+
223+
<!-- panels:start -->
224+
225+
<!-- div:left-panel -->
226+
227+
From `Task Management>Create New Task` tab, enter a job name, e.g. `User1_job2`. Click `Next`:
228+
229+
<!-- div:right-panel -->
230+
231+
![](06/cicd_b.png)
232+
233+
<!-- panels:end -->
234+
235+
---
236+
237+
<!-- panels:start -->
238+
239+
<!-- div:left-panel -->
240+
241+
Click `Next` (no git repository needs to be specified)
242+
243+
<!-- div:right-panel -->
244+
245+
![](06/cicd_c.png)
246+
247+
<!-- panels:end -->
248+
249+
---
250+
251+
<!-- panels:start -->
252+
253+
<!-- div:left-panel -->
254+
255+
Click `Add Build Actions>Add Build Server`
256+
257+
<!-- div:right-panel -->
258+
259+
![](06/cicd_d.png)
260+
261+
<!-- panels:end -->
262+
263+
---
264+
265+
<!-- panels:start -->
266+
267+
<!-- div:left-panel -->
268+
269+
Check `Select build server (template)` and choose the existing build server.
270+
* Note: to select from multiple IBM i servers, add Inventory and Templates in Merlin under Connections,
271+
272+
Optionally, specify `Work directory` of `/home/USERxx/cicd` where `USERxx` is your userid on the IBM i.
273+
274+
275+
<!-- div:right-panel -->
276+
277+
![](06/cicd_r.png)
278+
279+
<!-- panels:end -->
280+
281+
282+
---
283+
284+
<!-- panels:start -->
285+
286+
<!-- div:left-panel -->
287+
288+
Click `Add Build Actions>Run CL Command`
289+
290+
<!-- div:right-panel -->
291+
292+
![](06/cicd_f.png)
293+
294+
<!-- panels:end -->
295+
296+
---
297+
298+
<!-- panels:start -->
299+
300+
<!-- div:left-panel -->
301+
302+
Configure the CL command.
303+
304+
For `Specify remote IBM i server`, select the build server.
305+
306+
For `CL command`, specify commands to create a save file and save the ARCAD build library into it:
307+
308+
```
309+
CRTSAVF FILE(QGPL/USER16SAVF) TEXT('user 16 savf')
310+
SAVLIB LIB(SCODSB0026) DEV(*SAVF) SAVF(QGPL/USER16SAVF)
311+
```
312+
313+
Then click `Next`.
314+
315+
<!-- div:right-panel -->
316+
317+
![](06/cicd_t.png)
318+
319+
<!-- panels:end -->
320+
321+
---
322+
323+
<!-- panels:start -->
324+
325+
<!-- div:left-panel -->
326+
327+
No Deploy actions are required. Click `Next`
328+
329+
<!-- div:right-panel -->
330+
331+
![](06/cicd_i.png)
332+
333+
<!-- panels:end -->
334+
335+
---
336+
337+
<!-- panels:start -->
338+
339+
<!-- div:left-panel -->
340+
341+
Review the summary and click `Finish`
342+
343+
<!-- div:right-panel -->
344+
345+
![](06/cicd_u.png)
346+
347+
<!-- panels:end -->
348+
349+
---
350+
351+
<!-- panels:start -->
352+
353+
<!-- div:left-panel -->
354+
355+
Click `Yes` to save the task
356+
357+
<!-- div:right-panel -->
358+
359+
![](06/cicd_k.png)
360+
361+
<!-- panels:end -->
362+
363+
---
364+
### Run CL Command
365+
366+
<!-- panels:start -->
367+
368+
<!-- div:left-panel -->
369+
370+
Under `Task Management>Task Dashboard`, select `Run Task` from the popup menu on the new task
371+
372+
Click `Next` on eash panel and update any values if desired.
373+
374+
Click `Finish` after reviewing the summary.
375+
376+
Click `Yes` to submit the job.
377+
378+
<!-- div:right-panel -->
379+
380+
![](06/cicd_o.png)
381+
382+
<!-- panels:end -->
383+
384+
---
385+
386+
<!-- panels:start -->
387+
388+
<!-- div:left-panel -->
389+
390+
The Build results show the final status. Additional details are provided by checking the Jenkins information under `Jenkins Configuration > Manage Jenkins Jobs`
391+
392+
<!-- div:right-panel -->
393+
394+
![](06/cicd_v.png)
395+
396+
<!-- panels:end -->

0 commit comments

Comments
 (0)