[英]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 file to the given location to hold the configuration. 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文件到给定的位置来保存配置。 When the Zip file arrives in the artifactory location I need to unpack the contents and then commit to a new branch(off master) in the given Bitbucket repo.
当 Zip 文件到达工件位置时,我需要解压缩内容,然后提交给给定 Bitbucket 存储库中的新分支(关闭主分支)。 Generally I would do something manually like this
通常我会像这样手动做一些事情
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
I can do this manually but trying to work out if its correct adding to the Jenkins file or if it can be done in Jenkins UI itself in a more efficient way.我可以手动执行此操作,但尝试确定它是否正确添加到 Jenkins 文件中,或者是否可以在 Jenkins UI 本身中以更有效的方式完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.