-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-31153] Rename Workflow to Pipeline
- Loading branch information
Manuel Recena
committed
Jan 19, 2016
1 parent
0a7aa61
commit 188512d
Showing
21 changed files
with
33 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Jenkinsfile examples | ||
|
||
This directory contains example Jenkinsfiles, which are used with the Multibranch Workflow functionality, or the Workflow script from SCM functionality. | ||
This directory contains example Jenkinsfiles, which are used with the Pipeline Multibranch functionality, or the Pipeline script from SCM functionality. |
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,3 @@ | ||
# Pipeline examples | ||
|
||
This directory contains various Pipeline examples, showing how to use specific plugins, how the Pipeline DSL works, and more. |
4 changes: 2 additions & 2 deletions
4
workflow-examples/get-build-cause/README.md → pipeline-examples/get-build-cause/README.md
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Synopsis | ||
Shows how to get the Cause(s) of a Workflow build from within the | ||
Workflow script. | ||
Shows how to get the Cause(s) of a Pipeline build from within the | ||
Pipeline script. | ||
|
||
# Credit | ||
Based on Stackoverflow answer at http://stackoverflow.com/questions/33587927/how-to-get-cause-in-workflow |
2 changes: 1 addition & 1 deletion
2
...ples/get-build-cause/getBuildCause.groovy → ...ples/get-build-cause/getBuildCause.groovy
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,7 @@ | ||
# Synopsis | ||
Demonstrate how to expose the git_commit to a Pipeline job. | ||
|
||
# Background | ||
|
||
The git plugin exposes some environment variables to a freestyle job that are not currently exposed to a Pipeline job. | ||
Here's how to recover that ability using a git command and Pipeline's readFile() function. |
8 changes: 4 additions & 4 deletions
8
workflow-examples/gitcommit/gitcommit.groovy → pipeline-examples/gitcommit/gitcommit.groovy
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// These should all be performed at the point where you've | ||
// These should all be performed at the point where you've | ||
// checked out your sources on the slave. A 'git' executable | ||
// must be available. | ||
// Most typical, if you're not cloning into a sub directory | ||
sh('git rev-parse HEAD > GIT_COMMIT') | ||
git_commit=readFile('GIT_COMMIT') | ||
// short SHA, possibly better for chat notifications, etc. | ||
// short SHA, possibly better for chat notifications, etc. | ||
short_commit=git_commit.take(6) | ||
|
||
//create a GIT_COMMIT file in workspace and read back into a string in workflow | ||
//create a GIT_COMMIT file in workspace and read back into a string in Pipeline | ||
// If you have your sources checked out in a 'src' subdir | ||
sh('cd src && git rev-parse HEAD > GIT_COMMIT') | ||
git_commit=readFile('src/GIT_COMMIT') | ||
// short SHA, possibly better for chat notifications, etc. | ||
// short SHA, possibly better for chat notifications, etc. | ||
short_commit=git_commit.take(6) |
File renamed without changes.
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
workflow-examples/push-git-repo/README.md → pipeline-examples/push-git-repo/README.md
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.