当前位置:网站首页>5、 Build freestyle projects and related knowledge

5、 Build freestyle projects and related knowledge

2022-06-24 01:38:00 jackxiao

One 、 Create free style projects

  1. newly build freestyle-job New projects , Choose free style software , as follows
  1. General settings - Discard old builds This option is not required , But it's better to set , Avoid long-term build , Built programs take up too much server space
  1. use shell Command build Click... In the build excute shell Start using shell Command build steps .

Then enter the following three commands in the dialog box that appears , Click save after input , Complete the construction of this project

Two 、 Build the project

  1. Build immediately After saving the project , You will enter the project management interface , Click build now
  1. Build complete In the construction history below , The just built situation will occur , Put the mouse on the time , The arrow will appear , Select View command line output , You can view the build process
  1. The build process Click to display the console output information , From this message , We can see that Jenkins Build project information
  1. default directory /var/lib/jenkins/workspace/ yes Jenkins Working directory of , After each project is created , A directory with the same name will be generated in this directory , And the directory is Jenkins Execute build is the starting directory of , It's important
  2. Perform user Default Jenkins Configuration is used Jenkins To start up , There will be situations where some commands are not authorized to execute , So it can be configured as root user , Or yes Jenkins To authorize [ We have changed the configuration during installation ]
  3. host Jenkins Are built in Jenkins Executed on this machine , So if you need to copy something to another server , Or execute commands on other servers , Need to be done in advance ssh Key free Authentication , Reuse ssh Operation after remote login
原网站

版权声明
本文为[jackxiao]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/11/20211116164924037t.html