Jenkins system settings and Jenkins system settings
The current document is written in Jenkins.2.46.2If it is updated later, correct the errors in time.
SSH-key Management
Jenkins pipeline contains git, so you can add your deployment key in JenkinsJenkins-> Credentials-> SystemYou can create a new Domain, for example, git.coding.net under this Domain. After adding the key, you can use this configuration to perform Git operations when using the Git that comes with Jenkins.
If this item is not configured, an error occurs when you use the built-in Git command. You can only execute shell to perform Git operations through the configuration in the system. You can configure this item as needed, you don't need to talk about it later.
Environment variable settings
InJenkins-> System Management-> system informationYou can view all the environment variables, system attributes, and plug-ins in the current Jenkins system. You haven't checked the environment variables carefully before installing them. When running pipeline, you need to use some environment variables that have not taken effect, we thought we could solve this problem by modifying the Jenkins running user, but after modifying the user to the root user, it still does not solve the problem. If we need to change the environment variable PATH, we needJenkins-> System Management-> system settings.Global attributes, Hook upEnvironment variables, AddPATHAnd corresponding environment variable values