0%

What is Jenkins?

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

  1. Commit code: (Just like you commit code to Github, but this time commit to Jenkins)
  2. Build:
  3. Test:
  4. Release: Everything passed
  5. Deploy/Deliver

Architecture

  1. 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:

整个流程参考:
https://blog.csdn.net/weixin_34310785/article/details/91368233?spm=1001.2101.3001.6650.6&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-91368233-blog-70904198.235%5Ev43%5Econtrol&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-91368233-blog-70904198.235%5Ev43%5Econtrol&utm_relevant_index=8

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
2
3
4
5
deploy:
type: git
repo: https://github.com/username/project
# example, https://github.com/hexojs/hexojs.github.io
branch: gh-pages
  • 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
https://github.com/muyinchen/woker/blob/master/%E9%9B%86%E6%88%90%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E6%90%AD%E5%BB%BAJenkins%2BGithub%E6%8C%81%E7%BB%AD%E9%9B%86%E6%88%90%E7%8E%AF%E5%A2%83.md

jenkins 部署好hexo找不到commands
https://onew.me/jenkins/2018/05/10/jenkins_hexo.html