Debian Codegraph @

jenkins_jobs/modules/hudson_model.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13 # Representation of the hudson.model.Result class
14
15 SUCCESS = {"name": "SUCCESS", "ordinal": "0", "color": "BLUE", "complete": True}
16
17 UNSTABLE = {"name": "UNSTABLE", "ordinal": "1", "color": "YELLOW", "complete": True}
18
19 FAILURE = {"name": "FAILURE", "ordinal": "2", "color": "RED", "complete": True}
20
21 NOTBUILD = {"name": "NOT_BUILD", "ordinal": "3", "color": "NOTBUILD", "complete": False}
22
23 ABORTED = {"name": "ABORTED", "ordinal": "4", "color": "ABORTED", "complete": False}
24
25 THRESHOLDS = {
26 "SUCCESS": SUCCESS,
27 "UNSTABLE": UNSTABLE,
28 "FAILURE": FAILURE,
29 "NOT_BUILD": NOTBUILD,
30 "ABORTED": ABORTED,
31 }