forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkinsfile-examples.html
48 lines (48 loc) · 1.51 KB
/
jenkinsfile-examples.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div>
<p>
A Jenkinsfile is a Groovy script that defines your pipeline. In the Jenkinsfile, you can declare
pipeline stages and run one or more steps within each stage. Here are some examples you can use
in your pipelines.
</p>
<p>
Declare a new pipeline stage called <var>Build:</var>
<copy-to-clipboard
display-wide="true"
clipboard-text="'stage \'Build\''">
</copy-to-clipboard>
</p>
<p>
Start a build for build config <var>my-build-config:</var>
<copy-to-clipboard
display-wide="true"
clipboard-text="'openshiftBuild(buildConfig: \'my-build-config\', showBuildLogs: \'true\')'">
</copy-to-clipboard>
</p>
<p>
Start a deployment for deployment config <var>my-deployment-config:</var>
<copy-to-clipboard
display-wide="true"
clipboard-text="'openshiftDeploy(deploymentConfig: \'my-deployment-config\')'">
</copy-to-clipboard>
</p>
<p>
Run the shell command <var>make test:</var>
<copy-to-clipboard
display-wide="true"
clipboard-text="'sh \'make test\''">
</copy-to-clipboard>
</p>
<p>
Prompt for manual input:
<copy-to-clipboard
display-wide="true"
clipboard-text="'input \'Promote to production?\''">
</copy-to-clipboard>
</p>
<p>
Learn more about
<a ng-href="{{ 'pipeline-builds' | helpLink}}" target="_blank">Pipeline Builds</a>
and the
<a ng-href="{{ 'pipeline-plugin' | helpLink}}" target="_blank">OpenShift Pipeline Plugin</a>.
</p>
</div>