Configuring Jenkins Continuous Delivery


Reference
https://www.jianshu.com/p/1485a22f99b4
infringement delete
the home network is not good, their first move something simple record it, and then follow the virtual machine test

Jenkins-free configuration of GitLab SSH login close

  • Interactive Jenkins into the container
    docker exec -it jenkins /bin/bash
  • Into the vessel, generating SSH KEY
    ssh-keygen -t rsa -C "[email protected]"
  • View Public Key
    cat /var/jenkins_home/.ssh/id_rsa.pub
  • Copy the public key to GitLab
    to copy the key to the ssh configuration of local gitlab

Under cd path, a clone file manually , the main effect of this step is to generate and verify the information server
Here Insert Picture Description
Here Insert Picture Description

Publish over SSH configuration

配置 -> 系统配置 -> Publish over SSH
Here Insert Picture Description

gitLab create a label for the project

Create a label for the project in GitLab
Here Insert Picture Description

Here Insert Picture Description

jenkins create Maven Project

Creating a Maven-based tasks Jenkins in
reference b station video https://www.bilibili.com/video/av54208509?p=34

Published 43 original articles · won praise 3 · Views 1598

Guess you like

Origin blog.csdn.net/renguiriyue/article/details/104115266