Checkout-Build-Upload
Click on the Code base, (for details about the code base, see the Code Base directory)
Select associated Gitlab codebase
Click "Add", it will automatically jump to credential management -- add new credentials, obtain the AccessToken on gitlab to fill in, click "OK";
Go back to the code base, access credentials select Credentials [demo], OK
Create pipelining
Add a new stage
Add checkout gitlab plug-in, associate the created code base, and pull by branch
Package the code by adding shell plug-ins, viewing the current workspace, and pulling down the code directory
Save the shortur.zip file from your current workspace to the artifact library using the upload artifacts plugin Note: When multiple types of builder are used (public builder + private builder or multiple different private builders) and the build products need to be used between different builders (not limited to the pulled code), you can upload files/folders to the artifact library and download the corresponding files in the artifact library from the Job where the file is to be used
Add the upload artifacts plugin
download artifacts plugin -- Download files from the artifacts library into the workspace under the current Job Add a new stage
Add the Download artifacts plug-in, which automatically finds the source path of the artifact library based on the content filled in, and then downloads it to the current workspace
Last updated