2013-06-14 2 views
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가 여러 개 없어야합니다. 어떤 도움을 많이 주시면 감사하겠습니다.

답변

1

DEV @ Cloud 빌드 슬레이브 및 RUN @ Cloud 서버 노드는 별개의 호스트입니다. 귀하의 jenkins 작업은 런타임 환경을 준비하는 데 사용할 수 없습니다. 이러한 구성을 주입하려면 configuration parameters

을 사용하십시오.
관련 문제