簡體   English   中英

JenkinsFile 配置添加到新分支中的新解壓縮文件

[英]JenkinsFile configuration to add to new unpacked files in new branch

I have a folder on an artifactory server and I'm using Jenkins integration to watch that location and trigger a build if there is an update (new Zip file) Next step I added my bitbucket details and confirmed its working from Jenkins and deploying a Jenkins文件到給定的位置來保存配置。 當 Zip 文件到達工件位置時,我需要解壓縮內容,然后提交給給定 Bitbucket 存儲庫中的新分支(關閉主分支)。 通常我會像這樣手動做一些事情

git branch <branch name path>
git checkout <path above>
echo "my new stuff" >  mynewstuff(after unpacking)

git add -m "Test JIRA" mynewstuff
^^^s/add/commit
git push

我可以手動執行此操作,但嘗試確定它是否正確添加到 Jenkins 文件中,或者是否可以在 Jenkins UI 本身中以更有效的方式完成。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM