■ ■ ■ ■ ■ ■
src/main/java/io/onedev/k8shelper/KubernetesHelper.java
| skipped 67 lines |
68 | 68 | | |
69 | 69 | | public static final String WORKSPACE = "workspace"; |
70 | 70 | | |
| 71 | + | public static final String ATTRIBUTES = "attributes"; |
| 72 | + | |
71 | 73 | | public static final String PLACEHOLDER_PREFIX = "<&onedev#"; |
72 | 74 | | |
73 | 75 | | public static final String PLACEHOLDER_SUFFIX = "#onedev&>"; |
| skipped 902 lines |
976 | 978 | | } else if (placeholder.startsWith(WORKSPACE + "/")) { |
977 | 979 | | throw new ExplicitException("Error replacing placeholder: unable to find file '" |
978 | 980 | | + placeholder.substring(WORKSPACE.length()+1) + "' in workspace"); |
| 981 | + | } else if (placeholder.startsWith(ATTRIBUTES + "/")) { |
| 982 | + | throw new ExplicitException("Error replacing placeholder: agent attribute '" |
| 983 | + | + placeholder.substring(ATTRIBUTES.length()+1) + "' does not exist"); |
979 | 984 | | } else if (placeholder.equals(BUILD_VERSION)){ |
980 | 985 | | throw new ExplicitException("Error replacing placeholder: build version not set yet"); |
981 | 986 | | } |
| skipped 28 lines |