Merge branch '2.1.x'
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
echo $CLASSNAMES
|
||||
TEST_ARG=$(echo $CLASSNAMES | sed 's/ /,/g')
|
||||
echo $TEST_ARG
|
||||
./mvnw -s .settings.xml -DfailIfNoTests=false -DtestsToRun=$TEST_ARG -e clean org.jacoco:jacoco-maven-plugin:prepare-agent test -U -P sonar -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
./mvnw -s .settings.xml -DfailIfNoTests=false -DtestsToRun=$TEST_ARG -e clean org.jacoco:jacoco-maven-plugin:prepare-agent test -U -P sonar -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
mkdir -p $HOME/artifacts/junit/
|
||||
find . -type f -regex ".*/spring-cloud-*.*/target/*.*" -exec cp {} $HOME/artifacts/ \;
|
||||
find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} $HOME/artifacts/junit/ \;
|
||||
|
||||
@@ -19,6 +19,8 @@ package org.springframework.cloud.kubernetes.commons.config;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.function.BinaryOperator;
|
||||
@@ -96,7 +98,7 @@ public final class PropertySourceUtils {
|
||||
}
|
||||
return ABSTAIN;
|
||||
});
|
||||
yamlFactory.setResources(new ByteArrayResource(s.getBytes()));
|
||||
yamlFactory.setResources(new ByteArrayResource(s.getBytes(StandardCharsets.UTF_8)));
|
||||
return yamlFactory.getObject();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user