0
내 젠킨스에게 작업 사본을 확인할 수없는 특성 파일 (비밀 플러그인)은 다음과 같이봄 PropertyPlaceholderConfigurer와 속성
이 내가받을 수 있나요 왜냐하면 작동하는 것 같다if [[ ! -d ~/.app ]]
then
mkdir ~/.app
fi
cp ${SECRET}/app.properties ~/.app/app.properties
- CP/스크래치/젠킨스/비밀/d97a8ac1-8edc-4b15-b328-dc777d1b13c9/app.properties /home/jenkins/.app/app.properties
그리고 내 배치 전쟁은 다음과 같은 화면 구성을 가지고 N
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:///home/jenkins/.app/app.properties"/>
</bean>
<bean id="facebookConfig" class="com.dk.integration.fb.service.FacebookConfig">
<property name="applicationSecret" value="${app.secret}"></property>
<property name="applicationKey" value="${app.key}"></property>
<property name="applicationRedirectURI" value="${app.redirecturi}"></property>
</bean>
app.properties
app.secret=...
app.key=....
app.redirecturi=http://.....
그러나, 나는 여전히 가 org.springframework.beans.factory.config.PlaceholderConfigurerSupport에서 .doProcessProperties (PlaceholderConfigurerSupport.java:209)
I를 자리 표시 자 'app.secret'을 확인할 수 없습니다 얻을 PropertyPlaceholderConfigurer가 여러 개 없어야합니다. 어떤 도움을 많이 주시면 감사하겠습니다.