AzureDevOps-透過Command Merge
     環境    AzureDevOps    Jenkins    git       問題       目前的專案每天中午會透過手動的方式,固定發pull request將develop分支併到relesae。由於是常態性質,大部份是不需要review,所以一來浪費時間,二來有時一忙就會忘了作=.=。     解決方式    經測試後,可以透過command及Jenkins的建置工作來完成每日自動合併,以下為測試後的2種方式 (使用jenkins pipeline)     1.使用merge的方式    withCredentials([usernamePassword(credentialsId: '0f57466e-8dc0-444b-a88a-d56d663d3378', usernameVariable: 'username', passwordVariable: 'password')]){       bat "git pull https://${username}:${password}@xxx.visualstudio.com/KimGitLab/_git/KimGitLab"       bat "git merge origin/develop"       bat "git push https://${username}:${password}@xxx.visualstudio.com/KimGitLab/_git/KimGitLab"   }     透過withCredentials取得在Jenins上已儲存的AzureDevOps token    pull回來後,merge orgin/devlop到本地的release 在pull到遠端       2.使用Pull Request的方式    前面第1點雖然可以每天合併分支,但缺點是在release分支上無法看出develop每次併回來的commit有哪些。而pull request則可以。    安裝VSTS CLI     裝完後要重開機    VSTS CLI Command    Sample          withCredentials([...