[SPARK-25445][BUILD][FOLLOWUP] Resolve issues in release-build.sh for publishing scala-2.12 build
[SPARK-25445][BUILD][FOLLOWUP] Resolve issues in release-build.sh for publishing scala-2.12 build

## What changes were proposed in this pull request?

This is a follow up for #22441.

1. Remove flag "-Pkafka-0-8" for Scala 2.12 build.
2. Clean up the script, simpler logic.
3. Switch to Scala version to 2.11 before script exit.

## How was this patch tested?

Manual test.

Closes #22454 from gengliangwang/revise_release_build.

Authored-by: Gengliang Wang <bfe1a7b36425bd89859a70a36586361d28ec35eb@databricks.com>
Signed-off-by: Wenchen Fan <563f5923eae9a92c8a3f34a26b67fa348a303ed1@databricks.com>

aosagie/spark,zhouyejoe/spark,BryanCutler/spark,holdenk/spark,srowen/spark,pgandhi999/spark,hvanhovell/spark,spark-test/spark,icexelloss/spark,ConeyLiu/spark,zuotingbing/spark,actuaryzhang/spark,BryanCutler/spark,mdespriee/spark,techaddict/spark,hhbyyh/spark,BryanCutler/spark,caneGuy/spark,shaneknapp/spark,shaneknapp/spark,kiszk/spark,hhbyyh/spark,LantaoJin/spark,wangyum/spark,dbtsai/spark,taroplus/spark,gengliangwang/spark,michalsenkyr/spark,facaiy/spark,aosagie/spark,zhouyejoe/spark,mahak/spark,srowen/spark,goldmedal/spark,ptkool/spark,goldmedal/spark,wzhfy/spark,hvanhovell/spark,wangyum/spark,shaneknapp/spark,vinodkc/spark,darionyaphet/spark,mahak/spark,facaiy/spark,ConeyLiu/spark,yanboliang/spark,taroplus/spark,rednaxelafx/apache-spark,zhouyejoe/spark,actuaryzhang/spark,chuckchen/spark,witgo/spark,vinodkc/spark,ueshin/apache-spark,guoxiaolongzte/spark,apache/spark,cloud-fan/spark,jiangxb1987/spark,mahak/spark,srowen/spark,actuaryzhang/spark,Aegeaner/spark,cloud-fan/spark,skonto/spark,HyukjinKwon/spark,BryanCutler/spark,aosagie/spark,dongjoon-hyun/spark,xuanyuanking/spark,mdespriee/spark,srowen/spark,cloud-fan/spark,zzcclp/spark,maropu/spark,shaneknapp/spark,LantaoJin/spark,HyukjinKwon/spark,zzcclp/spark,taroplus/spark,nchammas/spark,michalsenkyr/spark,shaneknapp/spark,jkbradley/spark,ConeyLiu/spark,pgandhi999/spark,wzhfy/spark,goldmedal/spark,kiszk/spark,jiangxb1987/spark,WindCanDie/spark,hvanhovell/spark,zuotingbing/spark,guoxiaolongzte/spark,mahak/spark,skonto/spark,JoshRosen/spark,zuotingbing/spark,WeichenXu123/spark,pgandhi999/spark,zero323/spark,milliman/spark,srowen/spark,yanboliang/spark,holdenk/spark,wangmiao1981/spark,zzcclp/spark,ConeyLiu/spark,aosagie/spark,jkbradley/spark,zero323/spark,rednaxelafx/apache-spark,dongjoon-hyun/spark,goldmedal/spark,hvanhovell/spark,shuangshuangwang/spark,mdespriee/spark,yanboliang/spark,mahak/spark,HyukjinKwon/spark,zero323/spark,caneGuy/spark,techaddict/spark,kiszk/spark,ptkool/spark,maropu/spark,yanboliang/spark,bdrillard/spark,pgandhi999/spark,highfei2011/spark,gengliangwang/spark,zero323/spark,icexelloss/spark,facaiy/spark,kevinyu98/spark,bdrillard/spark,witgo/spark,wangyum/spark,nchammas/spark,actuaryzhang/spark,maropu/spark,rezasafi/spark,jkbradley/spark,facaiy/spark,holdenk/spark,bdrillard/spark,cloud-fan/spark,yanboliang/spark,goldmedal/spark,rednaxelafx/apache-spark,maropu/spark,WindCanDie/spark,apache/spark,witgo/spark,JoshRosen/spark,dbtsai/spark,taroplus/spark,xuanyuanking/spark,wzhfy/spark,cloud-fan/spark,michalsenkyr/spark,michalsenkyr/spark,wangmiao1981/spark,jiangxb1987/spark,bdrillard/spark,zhouyejoe/spark,skonto/spark,skonto/spark,witgo/spark,zzcclp/spark,yanboliang/spark,vinodkc/spark,LantaoJin/spark,JoshRosen/spark,ConeyLiu/spark,hvanhovell/spark,taroplus/spark,chuckchen/spark,caneGuy/spark,wangmiao1981/spark,pgandhi999/spark,ptkool/spark,actuaryzhang/spark,facaiy/spark,highfei2011/spark,pgandhi999/spark,caneGuy/spark,skonto/spark,dbtsai/spark,jiangxb1987/spark,ueshin/apache-spark,srowen/spark,yanboliang/spark,jkbradley/spark,kevinyu98/spark,milliman/spark,hvanhovell/spark,darionyaphet/spark,ptkool/spark,zhouyejoe/spark,wangmiao1981/spark,zhouyejoe/spark,WeichenXu123/spark,WindCanDie/spark,WindCanDie/spark,caneGuy/spark,Aegeaner/spark,bdrillard/spark,rednaxelafx/apache-spark,WeichenXu123/spark,hhbyyh/spark,zuotingbing/spark,zzcclp/spark,gengliangwang/spark,maropu/spark,rednaxelafx/apache-spark,bdrillard/spark,xuanyuanking/spark,kiszk/spark,JoshRosen/spark,highfei2011/spark,ahnqirage/spark,zuotingbing/spark,highfei2011/spark,kevinyu98/spark,icexelloss/spark,darionyaphet/spark,milliman/spark,actuaryzhang/spark,chuckchen/spark,icexelloss/spark,Aegeaner/spark,WindCanDie/spark,wzhfy/spark,goldmedal/spark,mdespriee/spark,rezasafi/spark,spark-test/spark,zzcclp/spark,chuckchen/spark,xuanyuanking/spark,BryanCutler/spark,darionyaphet/spark,spark-test/spark,vinodkc/spark,mdespriee/spark,chuckchen/spark,caneGuy/spark,wangmiao1981/spark,dbtsai/spark,ConeyLiu/spark,Aegeaner/spark,JoshRosen/spark,icexelloss/spark,Aegeaner/spark,wzhfy/spark,guoxiaolongzte/spark,jiangxb1987/spark,ConeyLiu/spark,LantaoJin/spark,nchammas/spark,spark-test/spark,WeichenXu123/spark,wangyum/spark,spark-test/spark,gengliangwang/spark,WindCanDie/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,darionyaphet/spark,ueshin/apache-spark,kiszk/spark,highfei2011/spark,witgo/spark,gengliangwang/spark,nchammas/spark,vinodkc/spark,hhbyyh/spark,witgo/spark,milliman/spark,vinodkc/spark,ahnqirage/spark,wangmiao1981/spark,holdenk/spark,apache/spark,taroplus/spark,guoxiaolongzte/spark,nchammas/spark,dongjoon-hyun/spark,pgandhi999/spark,zzcclp/spark,mahak/spark,rezasafi/spark,mahak/spark,xuanyuanking/spark,kevinyu98/spark,techaddict/spark,apache/spark,hhbyyh/spark,chuckchen/spark,holdenk/spark,nchammas/spark,ptkool/spark,mdespriee/spark,apache/spark,shuangshuangwang/spark,shuangshuangwang/spark,rednaxelafx/apache-spark,zero323/spark,wzhfy/spark,michalsenkyr/spark,aosagie/spark,taroplus/spark,shuangshuangwang/spark,srowen/spark,highfei2011/spark,highfei2011/spark,xuanyuanking/spark,matthewfranglen/spark,guoxiaolongzte/spark,ahnqirage/spark,WeichenXu123/spark,Aegeaner/spark,kiszk/spark,dongjoon-hyun/spark,actuaryzhang/spark,darionyaphet/spark,michalsenkyr/spark,rezasafi/spark,jkbradley/spark,cloud-fan/spark,techaddict/spark,LantaoJin/spark,mdespriee/spark,kevinyu98/spark,spark-test/spark,caneGuy/spark,HyukjinKwon/spark,ueshin/apache-spark,hvanhovell/spark,jkbradley/spark,ueshin/apache-spark,spark-test/spark,apache/spark,aosagie/spark,kevinyu98/spark,facaiy/spark,darionyaphet/spark,rezasafi/spark,jkbradley/spark,zero323/spark,zhouyejoe/spark,shuangshuangwang/spark,dbtsai/spark,rezasafi/spark,BryanCutler/spark,shuangshuangwang/spark,HyukjinKwon/spark,dbtsai/spark,HyukjinKwon/spark,jiangxb1987/spark,maropu/spark,LantaoJin/spark,wangyum/spark,nchammas/spark,guoxiaolongzte/spark,milliman/spark,apache/spark,holdenk/spark,kevinyu98/spark,zuotingbing/spark,michalsenkyr/spark,dongjoon-hyun/spark,milliman/spark,BryanCutler/spark,maropu/spark,kiszk/spark,ueshin/apache-spark,wangmiao1981/spark,LantaoJin/spark,ahnqirage/spark,hhbyyh/spark,cloud-fan/spark,WindCanDie/spark,holdenk/spark,goldmedal/spark,shaneknapp/spark,techaddict/spark,skonto/spark,JoshRosen/spark,witgo/spark,ptkool/spark,bdrillard/spark,gengliangwang/spark,wangyum/spark,rezasafi/spark,WeichenXu123/spark,zero323/spark,guoxiaolongzte/spark,shuangshuangwang/spark,ahnqirage/spark,shaneknapp/spark,icexelloss/spark,jiangxb1987/spark,techaddict/spark,wzhfy/spark,HyukjinKwon/spark,ptkool/spark,ueshin/apache-spark,gengliangwang/spark,techaddict/spark,facaiy/spark,milliman/spark,icexelloss/spark,zuotingbing/spark,vinodkc/spark,dbtsai/spark,Aegeaner/spark,WeichenXu123/spark,ahnqirage/spark,skonto/spark,xuanyuanking/spark,dongjoon-hyun/spark,hhbyyh/spark,aosagie/spark,wangyum/spark,ahnqirage/spark,chuckchen/spark,JoshRosen/spark