Skip to content

Commit

Permalink
Merge pull request #752 from zbynek/help-update
Browse files Browse the repository at this point in the history
Update terminology
  • Loading branch information
jtnord authored Jul 19, 2023
2 parents a180afe + c88266c commit 904c2ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
Specify where to obtain a source code repository containing your Groovy script.
It will be checked out somewhere on the Jenkins master and used to load your Pipeline script.
It will be checked out somewhere on the Jenkins controller and used to load your Pipeline script.
(If you wish to use other files from the same repository during your Pipeline,
you will need to check them out separately on some slave;
you will need to check them out separately on some agent;
this checkout cannot be reused.)
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>
<pre>
def pipeline
node('slave') {
node('agent') {
pipeline = load 'pipeline.groovy'
pipeline.functionA()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ public void onNewHead(FlowNode node) {
@Test public void env() {
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
Map<String,String> slaveEnv = new HashMap<>();
slaveEnv.put("BUILD_TAG", null);
slaveEnv.put("PERMACHINE", "set");
createSpecialEnvSlave(story.j, "agent", null, slaveEnv);
Map<String,String> agentEnv = new HashMap<>();
agentEnv.put("BUILD_TAG", null);
agentEnv.put("PERMACHINE", "set");
createSpecialEnvSlave(story.j, "agent", null, agentEnv);
p = jenkins().createProject(WorkflowJob.class, "demo");
p.setDefinition(new CpsFlowDefinition("node('agent') {\n"
+ " if (isUnix()) {sh 'echo tag=$BUILD_TAG PERMACHINE=$PERMACHINE'} else {bat 'echo tag=%BUILD_TAG% PERMACHINE=%PERMACHINE%'}\n"
Expand Down

0 comments on commit 904c2ea

Please sign in to comment.