@@ -9251,33 +9251,41 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
9251
9251
9252
9252
9253
9253
$templateCache.put('views/edit/jenkinsfile-examples.html',
9254
- "<div>\n" +
9254
+ "<div class=\"jenkinsfile-examples\" >\n" +
9255
9255
"<p>\n" +
9256
9256
"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.\n" +
9257
9257
"</p>\n" +
9258
9258
"<p>\n" +
9259
- "Declare a new pipeline stage called <var>Build:</var>\n" +
9260
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'stage \\'Build\\''\">\n" +
9261
- "</copy-to-clipboard>\n" +
9262
- "</p>\n" +
9263
- "<p>\n" +
9264
- "Start a build for build config <var>my-build-config:</var>\n" +
9265
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'openshiftBuild(buildConfig: \\'my-build-config\\', showBuildLogs: \\'true\\')'\">\n" +
9266
- "</copy-to-clipboard>\n" +
9267
- "</p>\n" +
9268
- "<p>\n" +
9269
- "Start a deployment for deployment config <var>my-deployment-config:</var>\n" +
9270
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'openshiftDeploy(deploymentConfig: \\'my-deployment-config\\')'\">\n" +
9259
+ "Run an OpenShift build and deployment:\n" +
9260
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node {\n" +
9261
+ " stage \\'Build\\'\n" +
9262
+ " openshiftBuild(buildConfig: \\'my-build-config\\', showBuildLogs: \\'true\\')\n" +
9263
+ " stage \\'Deploy\\'\n" +
9264
+ " openshiftDeploy(deploymentConfig: \\'my-deployment-config\\')\n" +
9265
+ "}\n" +
9266
+ "'\" multiline=\"true\">\n" +
9271
9267
"</copy-to-clipboard>\n" +
9272
9268
"</p>\n" +
9273
9269
"<p>\n" +
9274
- "Run the shell command <var>make test:</var>\n" +
9275
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'sh \\'make test\\''\">\n" +
9270
+ "Checkout source code and run shell commands on a node labelled <var>maven:</var>\n" +
9271
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node(\\'maven\\') {\n" +
9272
+ " stage \\'Checkout\\'\n" +
9273
+ " checkout scm\n" +
9274
+ " stage \\'Build\\'\n" +
9275
+ " sh \\'mvn install\\'\n" +
9276
+ " stage \\'Unit Test\\'\n" +
9277
+ " sh \\'mvn test\\'\n" +
9278
+ "}\n" +
9279
+ "'\" multiline=\"true\">\n" +
9276
9280
"</copy-to-clipboard>\n" +
9277
9281
"</p>\n" +
9278
9282
"<p>\n" +
9279
9283
"Prompt for manual input:\n" +
9280
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'input \\'Promote to production?\\''\">\n" +
9284
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node {\n" +
9285
+ " stage \\'Approve\\'\n" +
9286
+ " input \\'Promote to production?\\'\n" +
9287
+ "}\n" +
9288
+ "'\" multiline=\"true\">\n" +
9281
9289
"</copy-to-clipboard>\n" +
9282
9290
"</p>\n" +
9283
9291
"<p>\n" +
0 commit comments