git 使用命令 - JENKINS_HOME curl cip.cc pyinstaller 流水线构建python代码 Pull 更新的 Jenkinsfile 到其他的仓库分支中 git checkout development

1.Quick setup — if you’ve done this kind of thing before

https://github.com/littlevigra/django-urls-mgr

2.create a new repository on the command line

 
echo "# django-urls-mgr" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/littlevigra/django-urls-mgr.git
git push -u origin main

3.
push an existing repository from the command line
git remote add origin https://github.com/littlevigra/django-urls-mgr.git
git branch -M main
git push -u origin main


https://www.cnblogs.com/liuhedong/p/10743848.html#42-%E5%85%8B%E9%9A%86%E9%A1%B9%E7%9B%AE
pyinstaller 流水线构建python代码

3. Pull 更新的 Jenkinsfile 到其他的仓库分支中
现在你已经有一个完整的 Jenkinsfile 文件可以在Jenkins中构建你的应用, 你可以 pull 该文件从你本地仓库的 master 分支到它的 development 和 production 分支。 在你本地仓库的 building-a-multibranch-pipeline-project 目录下:

运行下面的命令来来pull从`master` 到 `development`的改变:

git checkout development
然后

git pull . master

还可以运行线面的命令将更改从 master pull到 production:

git checkout production
然后

git pull . master

现在你的 development 和 production 分支拥有你在 master 分支上对 Jenkinsfile 的所有修改。

参考:https://www.jenkins.io/zh/doc/tutorials/build-a-multibranch-pipeline-project/#%E7%BB%99%E4%BD%A0%E7%9A%84%E6%B5%81%E6%B0%B4%E7%BA%BF%E6%B7%BB%E5%8A%A0deliver%E5%92%8C-deploy-%E9%98%B6%E6%AE%B5

 
 
posted @ 2020-12-13 20:51  littlevigra  阅读(201)  评论(1编辑  收藏  举报