-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #947 from spadgett/jenkinsfile-examples
Merged by openshift-bot
- Loading branch information
Showing
15 changed files
with
278 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
angular.module('openshiftConsole') | ||
.controller('JenkinsfileExamplesModalController', function($scope, $uibModalInstance) { | ||
$scope.ok = function() { | ||
$uibModalInstance.close('ok'); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
<div class="modal-body"> | ||
<h2>Jenkinsfile Examples</h2> | ||
<ng-include src="'views/edit/jenkinsfile-examples.html'"></ng-include> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-lg btn-default" type="button" ng-click="ok()">OK</button> | ||
</div> | ||
</div> |
Oops, something went wrong.