Jenkins simply builds and executes tasks

Source: Internet
Author: User
Tags ssh keygen

Part 1 Jenkins User name configuration (Gerrit 2.11)
  
 
  1. #安装jenkins
  2. $ sudo apt-get install jenkins
  3. #为jenkins用户设定密码
  4. $ sudo passwd jenkins
  5. #进入jenkins的home下并创建ssh
  6. $ su jenkins
  7. $ ssh keygen
  8. #将repo放在usr/bin/下
  9. #repo中的gerrit地址需要进行修改

Part 2 shell flow in Jenkins (using variables)
  
 
  1. $ rm -rf $ws_test
  2. $ mkdir $ws_test
  3. $ cd $ws_test
  4. $ repo init - u ssh :// [email protected] $gerrit _server / fireos / / manifest -- repo - branch = amazon - stable -- no - repo - verify - b Fireos / int / austin
  5. $ repo sync -j8

Note: The Gerrit 2.10 version requires a GIT email address configured under Jenkins users
                                                                                                                                                                                ---by Amzaon Train 



From for notes (Wiz)

Jenkins simply builds and executes tasks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.