标签:ssl 标识 ash 解决 stage bind ber bit end
JENKINS_HOME=/data/.jenkins
export JENKINS_HOME
脚本共可以使用六类参数,参数列表如下:
#!/bin/bash
#CF login
cf login -a api.cf.saicmotort.com -u admin -p b58e6193033f47bb7408 -o demo -s development --skip-ssl-validation
#Get ROUTE_NAME
ROUTE_NUMBER=`cf apps | grep "$1-" |awk ‘{print $1}‘ | sort -n | head -n1 | awk -F- ‘{print $2}‘`
#CF push apps
cf push -p $2/$1.$4/target/$1.$4-2.0.0-SNAPSHOT.war -m 1G -d cf.saicmotort.com -n "$1" "$1-$3"
#CF unmap-route
cf unmap-route "$1-$ROUTE_NUMBER" cf.saicmotort.com -n $1
#CF delete app
scf delete "$1-$ROUTE_NUMBER" -f -r
#CF scale
cf scale "$1-$3" -i $5
#CF Bind service
cf bind-service "$1-$3" zookeeper
cf bind-service "$1-$3" rabbitmq-p
cf restage "$1-$3"
标签:ssl 标识 ash 解决 stage bind ber bit end
原文地址:http://www.cnblogs.com/dragoncn/p/6594297.html