File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/main/java/io/choerodon/devops/infra/util Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 33 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
55 <artifactId >devops-service</artifactId >
6- <version >1.3.5.RELEASE </version >
6+ <version >1.3.6-SNAPSHOT </version >
77 <packaging >jar</packaging >
88 <url >https://github.com/open-hand/devops-service</url >
99
Original file line number Diff line number Diff line change 2929import org .apache .commons .compress .utils .IOUtils ;
3030import org .apache .commons .io .FileUtils ;
3131import org .apache .commons .lang .StringUtils ;
32+ import org .apache .commons .lang3 .ObjectUtils ;
3233import org .hzero .core .base .BaseConstants ;
3334import org .slf4j .Logger ;
3435import org .slf4j .LoggerFactory ;
@@ -56,7 +57,16 @@ public class FileUtil {
5657
5758 private static final int BUFFER_SIZE = 2048 ;
5859 private static final Logger logger = LoggerFactory .getLogger (FileUtil .class );
59- private static final String EXEC_PATH = "/usr/lib/yaml/values_yaml" ;
60+ private static final String EXEC_PATH ;
61+
62+ static {
63+ String values_yaml_path = System .getenv ("VALUES_YAML_PATH" );
64+ if (ObjectUtils .isEmpty (values_yaml_path )) {
65+ EXEC_PATH = "/usr/lib/yaml/values_yaml" ;
66+ } else {
67+ EXEC_PATH = values_yaml_path ;
68+ }
69+ }
6070
6171
6272 private FileUtil () {
You can’t perform that action at this time.
0 commit comments