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 @   littlevigra  阅读(206)  评论(1编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
· 【译】Visual Studio 中新的强大生产力特性
· 2025年我用 Compose 写了一个 Todo App
点击右上角即可分享
微信分享提示