Jenkins
Jenkins is a continuous Integration
tool that alloas continuous development, test and deployment of newly created codes. A central tool for automation for all the projects. (Hudson is the origin version of Jenkins)
- Always running cycles to test agains the code.
- Can any time submit code to server
- Server goes ahead and validates and passes any tests that a tester may have created.
- If test failed, the code is sent back to the developer.
- Allow develpor not to break the build.
- Avoid run all the test locally and improves productivity
- Customers can get workable code faster.
Features
- Easy installation
- Easy configuration
- Plugins
- hundreds of plugins extend the functionality
- Extensible
- Distributed
Pipeline
- Commit code: (Just like you commit code to Github, but this time commit to Jenkins)
- Build:
- Test:
- Release: Everything passed
- Deploy/Deliver
Architecture
- example in maven and seleniums
Master-slave architecture
Source
Source: https://www.youtube.com/watch?v=LFDrDnKPOTg
Notes to Maven:
Notes to Selenium:
—所有内容均属本人学习记录,不保证完全正确—–
Share some thoughts about Automated Deploy for Hexo blog:
installing Jenkins on macOS :
https://www.macminivault.com/installing-jenkins-on-macos/
installing Hexo blog:
https://hexo.io/docs/setup.html
Upload hexo to github repository:
reference:
https://hexo.io/ko/docs/github-pages.html
https://github.com/hexojs/hexo-starter
- create a new repository
- need to upload all files including source file
- local init git and push back to repository etc.
- change the _config.yaml file deploy section
1 | deploy: |
- upload source file to main, and deploy to a new branch called gh-pages, don’t deploy on main!!!!
配置Github 公钥 和Jenkins 私钥
https://blog.csdn.net/weixin_43944305/article/details/119559807
jenkins 部署好hexo找不到commands
https://onew.me/jenkins/2018/05/10/jenkins_hexo.html