Commit 7f44d3ba authored by carlosribas's avatar carlosribas
Browse files

Remove bracket

parent ea599970
......@@ -68,7 +68,8 @@ pipeline {
# clear the cache
MEMCACHED=`/net/isilonP/public/rw/homes/xfm_adm/.jenkins/kubectl --kubeconfig=${config} get pod -n dev --no-headers | grep memcached`
if [[ $MEMCACHED == memcached* ]] then
echo $MEMCACHED
if [ $MEMCACHED == memcached* ]; then
POD=`/net/isilonP/public/rw/homes/xfm_adm/.jenkins/kubectl --kubeconfig=${config} get pod -l app=memcached -o jsonpath="{.items[0].metadata.name}"`
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/kubectl --kubeconfig=${config} exec -it \$POD -- sh -c "echo flush_all | nc localhost 11211"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment