NGINX_CONF_DIR=/etc/nginx/conf.d

cd $WORKSPACE
cp -rf $WORKSPACE/conf/experiment.conf $NGINX_CONF_DIR/.

/usr/sbin/service nginx reload
NGINX_CONF_DIR=/etc/nginx/conf.d

cd $WORKSPACE
cp -rf $WORKSPACE/conf/experiment.conf $NGINX_CONF_DIR/.

chown nginx.nginx $NGINX_CONF_DIR/experiment.conf

/usr/sbin/service nginx reload
Change owner of config file to nginx
Change owner of config file to nginx