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