@@ -9251,33 +9251,50 @@ 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" +
9259
+ "Checkout source code and run the shell command <var>make:</var>\n" +
9260
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node {\n" +
9261
+ " stage \\'Checkout\\'\n" +
9262
+ " checkout scm\n" +
9263
+ " stage \\'Build\\'\n" +
9264
+ " sh \\'make\\'\n" +
9265
+ "}\n" +
9266
+ "'\" multiline=\"true\">\n" +
9266
9267
"</copy-to-clipboard>\n" +
9267
9268
"</p>\n" +
9268
9269
"<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" +
9270
+ "Run an OpenShift build and deployment:\n" +
9271
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node {\n" +
9272
+ " stage \\'Build\\'\n" +
9273
+ " openshiftBuild(buildConfig: \\'my-build-config\\', showBuildLogs: \\'true\\')\n" +
9274
+ " stage \\'Deploy\\'\n" +
9275
+ " openshiftDeploy(deploymentConfig: \\'my-deployment-config\\')\n" +
9276
+ "}\n" +
9277
+ "'\" multiline=\"true\">\n" +
9271
9278
"</copy-to-clipboard>\n" +
9272
9279
"</p>\n" +
9273
9280
"<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" +
9281
+ "Prompt for manual input:\n" +
9282
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node {\n" +
9283
+ " stage \\'Approve\\'\n" +
9284
+ " input \\'Promote to production?\\'\n" +
9285
+ "}\n" +
9286
+ "'\" multiline=\"true\">\n" +
9276
9287
"</copy-to-clipboard>\n" +
9277
9288
"</p>\n" +
9278
9289
"<p>\n" +
9279
- "Prompt for manual input:\n" +
9280
- "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'input \\'Promote to production?\\''\">\n" +
9290
+ "Run stages on a node labelled <var>maven:</var>\n" +
9291
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'node(\\'maven\\') {\n" +
9292
+ " stage \\'Checkout\\'\n" +
9293
+ " checkout scm\n" +
9294
+ " stage \\'Unit Test\\'\n" +
9295
+ " sh \\'mvn test\\'\n" +
9296
+ "}\n" +
9297
+ "'\" multiline=\"true\">\n" +
9281
9298
"</copy-to-clipboard>\n" +
9282
9299
"</p>\n" +
9283
9300
"<p>\n" +
0 commit comments