Workarounds for Jenkins and Gerrit cannot be associated after replacing server IP

Source: Internet
Author: User

After moving into the new office, the GIT server changed its name to 192.168.160.8 from the original 192.168.161.8.

Gerrit and Jenkins cannot be associated, causing the task to fail to build successfully.

The problem is that the authentication of Jenkins and Gerrit after the IP change is changed.

The authentication directory can be found on the Web page:/var/lib/jenkins/.ssh/id_rsa

Step one: Go to the Jenkins page to set Gerrit IP as the new IP

650) this.width=650; "class=" Confluence-embedded-image "src=" HTTP://WIKI.TBOX.ME/DOWNLOAD/ATTACHMENTS/11174679/1. Png?version=1&modificationdate=1425448800000&api=v2 "style=" margin:0px;padding:0px;border:0px; "alt=" 1. png?version=1&modificationdate=1425448 "/>

650) this.width=650; "class=" Confluence-embedded-image "src=" HTTP://WIKI.TBOX.ME/DOWNLOAD/ATTACHMENTS/11174679/2. Png?version=1&modificationdate=1425448800000&api=v2 "style=" margin:0px;padding:0px;border:0px; "alt=" 2. png?version=1&modificationdate=1425448 "/>

650) this.width=650; "class=" Confluence-embedded-image "src=" HTTP://WIKI.TBOX.ME/DOWNLOAD/ATTACHMENTS/11174679/3. Png?version=1&modificationdate=1425448800000&api=v2 "style=" margin:0px;padding:0px;border:0px; "alt=" 3. png?version=1&modificationdate=1425448 "/>

Step Two: Enter the 192.168.160.8 server to change the configuration file

#vim/var/lib/jenkins/.ssh/config

Host Gerritserver
Hostname 192.168.160.8
User Jenkins
Port 29418
Identityfile ~/.ssh/id_rsa

650) this.width=650; "class=" Confluence-embedded-image "src=" HTTP://WIKI.TBOX.ME/DOWNLOAD/ATTACHMENTS/11174679/4. Png?version=1&modificationdate=1425448800000&api=v2 "style=" margin:0px;padding:0px;border:0px; "alt=" 4. png?version=1&modificationdate=1425448 "/>


Workarounds for Jenkins and Gerrit cannot be associated after replacing server IP

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.