Skip to content

Commit

Permalink
[JENKINS-38865] agent before stages
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Oct 19, 2016
1 parent d3f35a1 commit d07ecbf
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -89,12 +89,12 @@ public void validate(ModelValidator validator) {
public String toGroovy() {
StringBuilder result = new StringBuilder();
result.append("pipeline {\n");
if (stages != null) {
result.append(stages.toGroovy()).append('\n');
}
if (agent != null) {
result.append(agent.toGroovy()).append('\n');
}
if (stages != null) {
result.append(stages.toGroovy()).append('\n');
}
if (tools != null) {
result.append(tools.toGroovy()).append('\n');
}
Expand Down

0 comments on commit d07ecbf

Please sign in to comment.