Skip to content
Permalink
Browse files

[JENKINS-31153] Rename Workflow to Pipeline. All the display names in…

… the user interface
  • Loading branch information
Manuel Recena
Manuel Recena committed Jan 11, 2016
1 parent 92fe988 commit b91ba5c3fd00a8bf4ef6178ae74f2fa43da4b5cb
Showing with 37 additions and 37 deletions.
  1. +8 −8 aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowJobNonRestartingTest.java
  2. +2 −2 aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/global/WorkflowLibRepositoryTest.java
  3. +1 −1 api/src/main/java/org/jenkinsci/plugins/workflow/graph/FlowEndNode.java
  4. +1 −1 api/src/main/java/org/jenkinsci/plugins/workflow/graph/FlowStartNode.java
  5. +1 −1 cps/package.json
  6. +1 −1 cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition.java
  7. +1 −1 cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java
  8. +1 −1 cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsScmFlowDefinition.java
  9. +1 −1 cps/src/main/java/org/jenkinsci/plugins/workflow/cps/Snippetizer.java
  10. +1 −1 cps/src/main/resources/index.jelly
  11. +1 −1 cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsScmFlowDefinition/help-scriptPath.html
  12. +2 −2 cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly
  13. +2 −2 job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
  14. +1 −1 job/src/main/java/org/jenkinsci/plugins/workflow/job/console/WorkflowRunConsoleNote.java
  15. +1 −1 job/src/main/java/org/jenkinsci/plugins/workflow/job/views/FlowGraphTableAction.java
  16. +1 −1 job/src/main/resources/index.jelly
  17. +1 −1 job/src/main/resources/org/jenkinsci/plugins/workflow/job/WorkflowJob/configure-entries.jelly
  18. +1 −1 multibranch/src/main/java/org/jenkinsci/plugins/workflow/multibranch/SCMBinder.java
  19. +1 −1 multibranch/src/main/java/org/jenkinsci/plugins/workflow/multibranch/SCMVar.java
  20. +1 −1 multibranch/src/main/java/org/jenkinsci/plugins/workflow/multibranch/WorkflowMultiBranchProject.java
  21. +1 −1 ...h/src/main/java/org/jenkinsci/plugins/workflow/multibranch/WorkflowMultiBranchProjectFactory.java
  22. +1 −1 ...rg/jenkinsci/plugins/workflow/multibranch/WorkflowMultiBranchProject/newInstanceDetail.properties
  23. +1 −1 stm/src/main/java/org/jenkinsci/plugins/workflow/stm/STMFlowDefinition.java
  24. +1 −1 support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
  25. +1 −1 .../src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/BuildTriggerCancelledCause.java
  26. +1 −1 support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStep.java
  27. +1 −1 support/src/main/resources/index.jelly
@@ -148,14 +148,14 @@ public void testRetry() throws Exception {

idx = 0;
for (String msg : new String[] {
"[Workflow] Retry the body up to N times : Start",
"[Workflow] retry {",
"[Workflow] } //retry",
"[Workflow] retry {",
"[Workflow] } //retry",
"[Workflow] retry {",
"[Workflow] } //retry",
"[Workflow] Retry the body up to N times : End",
"[Pipeline] Retry the body up to N times : Start",
"[Pipeline] retry {",
"[Pipeline] } //retry",
"[Pipeline] retry {",
"[Pipeline] } //retry",
"[Pipeline] retry {",
"[Pipeline] } //retry",
"[Pipeline] Retry the body up to N times : End",
}) {
idx = log.indexOf(msg, idx + 1);
assertTrue(msg + " not found", idx != -1);
@@ -127,7 +127,7 @@ public void userDefinedGlobalVariable() throws Exception {
WorkflowJob p = jenkins.createProject(WorkflowJob.class, "p");

p.setDefinition(new CpsFlowDefinition(
"acmeVar.hello('Workflow');" +
"acmeVar.hello('Pipeline');" +
"acmeVar.foo('seed');" +
"echo '['+acmeVar.bar()+']';"+
"acmeFunc(1,2);"+
@@ -137,7 +137,7 @@ public void userDefinedGlobalVariable() throws Exception {
// build this workflow
WorkflowRun b = story.j.assertBuildStatusSuccess(p.scheduleBuild2(0));

story.j.assertLogContains("Hello Workflow", b);
story.j.assertLogContains("Hello Pipeline", b);
story.j.assertLogContains("[seed-set-get]", b);
story.j.assertLogContains("call(1,2)", b);
story.j.assertLogContains("title was yolo", b);
@@ -47,6 +47,6 @@ public Result getResult() {

@Override
protected String getTypeDisplayName() {
return "End of Workflow";
return "End of Pipeline";
}
}
@@ -51,6 +51,6 @@ public FlowStartNode(FlowExecution exec, String id) {

@Override
protected String getTypeDisplayName() {
return "Start of Workflow";
return "Start of Pipeline";
}
}
@@ -1,7 +1,7 @@
{
"name": "workflow-ui",
"version": "1.0.0",
"description": "Jenkins Workflow UI",
"description": "Jenkins Pipeline UI",
"author": "Tom Fennelly <tom.fennelly@gmail.com> (https://github.com/tfennelly)",
"license": "MIT",
"repository": {
@@ -111,7 +111,7 @@ public CpsFlowExecution create(FlowExecutionOwner owner, TaskListener listener,

@Override
public String getDisplayName() {
return "Workflow script";
return "Pipeline script";
}

public FormValidation doCheckScript(@QueryParameter String value, @QueryParameter boolean sandbox) {
@@ -359,7 +359,7 @@ private Env createInitialEnv() {

private CpsScript parseScript() throws IOException {
shell = new CpsGroovyShell(this);
CpsScript s = (CpsScript) shell.reparse("WorkflowScript",script);
CpsScript s = (CpsScript) shell.reparse("WorkflowScript", script);

for (Entry<String, String> e : loadedScripts.entrySet()) {
shell.reparse(e.getKey(), e.getValue());
@@ -136,7 +136,7 @@ private String getFilePathSuffix() {
@Inject public Snippetizer snippetizer;

@Override public String getDisplayName() {
return "Workflow script from SCM";
return "Pipeline script from SCM";
}

public Collection<? extends SCMDescriptor<?>> getApplicableDescriptors() {
@@ -237,7 +237,7 @@ public HttpResponse doGenerateSnippet(StaplerRequest req, @QueryParameter String
public void doStatic(StaplerRequest req, StaplerResponse rsp) throws Exception {
rsp.setContentType("text/html;charset=UTF-8");
PrintWriter pw = rsp.getWriter();
pw.println("<html><head><title>Jenkins Workflow Reference</title></head><body>");
pw.println("<html><head><title>Jenkins Pipeline Reference</title></head><body>");
pw.println("<h1>Steps</h1>");
for (StepDescriptor d : getStepDescriptors(false)) {
generateStepHelp(d, pw);
@@ -25,5 +25,5 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<div>
Workflow execution engine based on continuation passing style transformation of Groovy scripts.
Pipeline execution engine based on continuation passing style transformation of Groovy scripts.
</div>
@@ -1,5 +1,5 @@
<div>
Relative location within the checkout of your Workflow script.
Relative location within the checkout of your Pipeline script.
Note that it will always be run inside a Groovy sandbox.
<code>Jenkinsfile</code> is conventional and allows you to switch easily to a multibranch project
(just use <code>checkout scm</code> to retrieve sources from the same location as is configured here).
@@ -13,7 +13,7 @@ node {
</p>
<p>
These definitions will also be available via the REST API during the build or after its completion,
and from upstream Workflow builds using the <code>build</code> step.
and from upstream Pipeline builds using the <code>build</code> step.
</p>
<p>
However any variables set this way are global to the workflow build.
@@ -24,7 +24,7 @@ node {
<p>
A set of environment variables are made available to all Jenkins projects, including workflows.
The following is a general list of variables (by name) that are available;
see the notes below the list for Workflow-specific details.
see the notes below the list for Pipeline-specific details.
</p>
<!-- Cf. EnvironmentContributor/EnvVarsHtml/index.groovy -->
<j:forEach var="ec" items="${it.environmentContributors}">
@@ -402,7 +402,7 @@ public void setConcurrentBuild(boolean b) throws IOException {
}

@Override public String getPronoun() {
return AlternativeUiTextProvider.get(PRONOUN, this, "Workflow");
return AlternativeUiTextProvider.get(PRONOUN, this, "Pipeline");
}

@Override public TopLevelItemDescriptor getDescriptor() {
@@ -560,7 +560,7 @@ public static void alias() {
@Extension(ordinal=1) public static final class DescriptorImpl extends TopLevelItemDescriptor {

@Override public String getDisplayName() {
return "Workflow";
return "Pipeline";
}

@Override public TopLevelItem newInstance(ItemGroup parent, String name) {
@@ -40,7 +40,7 @@
/**
* Prefix used in metadata lines.
*/
public static final String CONSOLE_NOTE_PREFIX = "[Workflow] ";
public static final String CONSOLE_NOTE_PREFIX = "[Pipeline] ";

/**
* CSS color selector.
@@ -45,7 +45,7 @@ private FlowGraphTableAction(WorkflowRun run) {
}

@Override public String getDisplayName() {
return "Workflow Steps";
return "Pipeline Steps";
}

@Override public String getUrlName() {
@@ -25,5 +25,5 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<div>
Defines a new job type for workflows and provides their generic user interface.
Defines a new job type for pipelines and provides their generic user interface.
</div>
@@ -37,7 +37,7 @@
</f:advanced>
</f:section>

<f:section title="Workflow">
<f:section title="Pipeline">
<f:dropdownDescriptorSelector title="Definition" field="definition" descriptors="${descriptor.getDefinitionDescriptors(it)}"/>
</f:section>
</j:jelly>
@@ -92,7 +92,7 @@
@Inject public Snippetizer snippetizer;

@Override public String getDisplayName() {
return "Workflow script from " + WorkflowMultiBranchProject.SCRIPT;
return "Pipeline script from " + WorkflowMultiBranchProject.SCRIPT;
}

}
@@ -60,7 +60,7 @@
Run<?,?> build = script.$build();
// TODO some code overlap with SCMBinder.create, but not obvious how to factor out common parts
if (!(build instanceof WorkflowRun)) {
throw new AbortException("not available outside a workflow build");
throw new AbortException("not available outside a Pipeline build");
}
Job<?,?> job = build.getParent();
BranchJobProperty property = job.getProperty(BranchJobProperty.class);
@@ -68,7 +68,7 @@ public WorkflowMultiBranchProject(ItemGroup parent, String name) {
@Extension public static class DescriptorImpl extends MultiBranchProjectDescriptor {

@Override public String getDisplayName() {
return "Multibranch Workflow";
return "Multibranch Pipeline";
}

@Override public TopLevelItem newInstance(ItemGroup parent, String name) {
@@ -54,7 +54,7 @@
}

@Override public String getDisplayName() {
return "Workflow Jenkinsfile";
return "Pipeline Jenkinsfile";
}

}
@@ -20,4 +20,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

body=Creates a set of Workflow projects according to detected branches in one SCM repository.
body=Creates a set of Pipeline projects according to detected branches in one SCM repository.
@@ -69,7 +69,7 @@
@Extension public static final class DescriptorImpl extends FlowDefinitionDescriptor {

@Override public String getDisplayName() {
return "STM Workflow";
return "STM Pipeline";
}

}
@@ -305,7 +305,7 @@ private Object readResolve() {
@Override public String getDisplayName() {
// TODO more generic to check whether FlowExecution.owner.executable is a ModelObject
Run<?,?> r = run();
return r != null ? "part of " + r.getFullDisplayName() : "Unknown workflow node step";
return r != null ? "part of " + r.getFullDisplayName() : "Unknown Pipeline node step";
}

@Override public String getName() {
@@ -22,6 +22,6 @@ public BuildTriggerCancelledCause(Throwable cause) {

@Override
public String getShortDescription() {
return "Calling workflow was cancelled";
return "Calling Pipeline was cancelled";
}
}
@@ -47,7 +47,7 @@
@DataBoundConstructor
public InputStep(String message) {
if (message==null)
message = "Workflow has paused and needs your input before proceeding";
message = "Pipeline has paused and needs your input before proceeding";
this.message = message;
}

@@ -24,5 +24,5 @@

<?jelly escape-by-default='true'?>
<div>
Common utility implementations to build workflow plugin
Common utility implementations to build Pipeline Plugin
</div>

0 comments on commit b91ba5c

Please sign in to comment.
You can’t perform that action at this time.