Skip to content
Permalink
Browse files
[JENKINS-38865] agent before stages
  • Loading branch information
stephenc committed Oct 19, 2016
1 parent d3f35a1 commit d07ecbf481a84d6bf0dac8ec764c54c2608d1dd4
Showing with 3 additions and 3 deletions.
  1. +3 −3 ...del-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTPipelineDef.java
@@ -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');
}

0 comments on commit d07ecbf

Please sign in to comment.