[Fuego] [PATCH] install-debian: fix jenkins installation

Tim.Bird at sony.com Tim.Bird at sony.com
Tue Mar 26 20:30:30 UTC 2019


Look OK.  Applied to fuegotest 'next' branch.
 -- Tim


> -----Original Message-----
> From: Daniel Sangorrin
> There is a problem with authentication because we copy
> config.xml too late. Probably the same problem occurs
> with the Dockerfile.
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> ---
>  install-debian.sh | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/install-debian.sh b/install-debian.sh
> index 62bf799..f3df91b 100755
> --- a/install-debian.sh
> +++ b/install-debian.sh
> @@ -118,6 +118,7 @@ if [ $nojenkins -eq 0 ]; then
>  	chown -R jenkins:jenkins /fuego
>  	chown -R jenkins:jenkins /fuego-ro
>  	chown -R jenkins:jenkins /fuego-rw
> +	chown -R jenkins:jenkins /fuego-core
> 
>  	source /etc/default/jenkins && \
>  		JENKINS_ARGS="$JENKINS_ARGS --prefix=/fuego" && \
> @@ -134,12 +135,19 @@ if [ $nojenkins -eq 0 ]; then
> 
>  	sed -i -e "s#8080#$JENKINS_PORT#g" /etc/default/jenkins
> 
> -
>  	cp /fuego/frontend-install/install-plugins.sh \
>  		/fuego/frontend-install/jenkins-support \
>  		/fuego/frontend-install/clitest \
>  		/usr/local/bin/
> 
> +	cp /fuego/frontend-install/config.xml $JENKINS_HOME/config.xml
> +	ln -s /fuego-rw/logs $JENKINS_HOME/userContent/fuego.logs
> +	mkdir $JENKINS_HOME/userContent/docs
> +	cp /fuego/docs/fuego-docs.pdf
> $JENKINS_HOME/userContent/docs/fuego-docs.pdf
> +	jenkins cp /fuego/frontend-
> install/jenkins.model.JenkinsLocationConfiguration.xml
> $JENKINS_HOME/jenkins.model.JenkinsLocationConfiguration.xml
> +	sed -i -e "s#8080#$JENKINS_PORT#g"
> $JENKINS_HOME/jenkins.model.JenkinsLocationConfiguration.xml
> +	chown -R jenkins:jenkins $JENKINS_HOME/
> +
>  	# install flot.hpi manually from local file
>  	service jenkins start && \
>  		sleep 30 && \
> @@ -149,9 +157,6 @@ if [ $nojenkins -eq 0 ]; then
>  		sleep 10 && \
>  		service jenkins stop
> 
> -	echo -e "done"
> -	exit 0
> -
>  	# install other plugins from Jenkins update center
>  	# NOTE: not sure all of these are needed, but keep list
>  	# compatible with 1.2.1 release for now
> @@ -180,11 +185,6 @@ if [ $nojenkins -eq 0 ]; then
>  		rm $JENKINS_HOME/plugins/flot/flot/mod.js && \
>  		ln -s /fuego-core/scripts/mod.js
> $JENKINS_HOME/plugins/flot/flot/mod.js
> 
> -	ln -s /fuego-rw/logs $JENKINS_HOME/userContent/fuego.logs
> -	cp /fuego/docs/fuego-docs.pdf
> $JENKINS_HOME/userContent/docs/fuego-docs.pdf
> -	cp /fuego/frontend-install/config.xml $JENKINS_HOME/config.xml
> -	cp /fuego/frontend-
> install/jenkins.model.JenkinsLocationConfiguration.xml
> $JENKINS_HOME/jenkins.model.JenkinsLocationConfiguration.xml
> -	sed -i -e "s#8080#$JENKINS_PORT#g"
> $JENKINS_HOME/jenkins.model.JenkinsLocationConfiguration.xml
>  	chown -R jenkins:jenkins $JENKINS_HOME/
>  else
>  	sed -i -e 's/jenkins_enabled=1/jenkins_enabled=0/g' /fuego-
> ro/conf/fuego.conf
> --
> 2.7.4
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list