-2
我有一個文件,其中存儲了git push命令的輸出。它的輸出看起來像這樣,如何從groovy中的字符串獲取URL
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 315 bytes | 315.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/...
99d7..344 <branch> -> <branch>
Branch newBranch set up to track remote branch newBranch from origin.
我保存這個輸出在一個變量,現在我想做的事該變量的操作和只獲取URL一樣,
https://githhub.com/...
這是一個詹金斯管道代碼。 謝謝。