summaryrefslogtreecommitdiffstats
path: root/tests/publishers/fixtures/postbuildscript-full.xml
blob: 60d2ac48b6be6cbb6ebcf1ab39942dd51ce275d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8"?>
<project>
  <publishers>
    <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
      <config>
        <markBuildUnstable>true</markBuildUnstable>
        <scriptFiles>
          <org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
            <results>
              <string>SUCCESS</string>
              <string>UNSTABLE</string>
            </results>
            <role>MASTER</role>
            <filePath>/fakepath/generic</filePath>
            <scriptType>GENERIC</scriptType>
          </org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
          <org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
            <results>
              <string>NOT_BUILT</string>
              <string>ABORTED</string>
              <string>FAILURE</string>
            </results>
            <role>SLAVE</role>
            <filePath>/fakepath/generic-two</filePath>
            <scriptType>GENERIC</scriptType>
          </org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
          <org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
            <results>
              <string>SUCCESS</string>
              <string>UNSTABLE</string>
            </results>
            <role>MASTER</role>
            <filePath>/fakepath/groovy</filePath>
            <scriptType>GROOVY</scriptType>
          </org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
          <org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
            <results>
              <string>NOT_BUILT</string>
              <string>ABORTED</string>
              <string>FAILURE</string>
            </results>
            <role>SLAVE</role>
            <filePath>/fakepath/groovy-too</filePath>
            <scriptType>GROOVY</scriptType>
          </org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
        </scriptFiles>
        <groovyScripts>
          <org.jenkinsci.plugins.postbuildscript.model.Script>
            <results>
              <string>SUCCESS</string>
              <string>UNSTABLE</string>
            </results>
            <role>MASTER</role>
            <content>println &quot;Hello world!&quot;</content>
          </org.jenkinsci.plugins.postbuildscript.model.Script>
          <org.jenkinsci.plugins.postbuildscript.model.Script>
            <results>
              <string>NOT_BUILT</string>
              <string>ABORTED</string>
              <string>FAILURE</string>
            </results>
            <role>SLAVE</role>
            <content>println &quot;Hello world!&quot;
println &quot;Multi-line script&quot;
</content>
          </org.jenkinsci.plugins.postbuildscript.model.Script>
        </groovyScripts>
        <buildSteps>
          <org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
            <results>
              <string>SUCCESS</string>
              <string>UNSTABLE</string>
            </results>
            <role>MASTER</role>
            <buildSteps>
              <hudson.tasks.Shell>
                <command>echo &quot;Hello world!&quot;</command>
              </hudson.tasks.Shell>
            </buildSteps>
          </org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
          <org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
            <results>
              <string>NOT_BUILT</string>
              <string>ABORTED</string>
              <string>FAILURE</string>
            </results>
            <role>SLAVE</role>
            <buildSteps>
              <hudson.tasks.Shell>
                <command>echo &quot;Hello world!&quot;</command>
              </hudson.tasks.Shell>
              <hudson.tasks.Shell>
                <command>echo &quot;Goodbye world!&quot;</command>
              </hudson.tasks.Shell>
            </buildSteps>
          </org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
        </buildSteps>
      </config>
    </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
  </publishers>
</project>