问答详情
源自:5-2 创建Jenkins自动化部署任务

构建任务的时候报错 Null value not allowed as an environment variable: GIT_URL_2

Started by user unknown or anonymous
Running as SYSTEM
Building on master in workspace /root/.jenkins/workspace/deployOrder
FATAL: Null value not allowed as an environment variable: GIT_URL_2
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_URL_2
	at hudson.EnvVars.put(EnvVars.java:379)
	at hudson.EnvVars.put(EnvVars.java:76)
	at hudson.plugins.git.GitSCM.buildEnvironment(GitSCM.java:1385)
	at hudson.plugins.git.GitSCM.buildEnvVars(GitSCM.java:1330)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:871)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1147)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
	at hudson.model.Run.execute(Run.java:1856)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE

http://img2.mukewang.com/5e4b975700019de505460320.jpg

提问者:慕标0211517 2020-02-18 15:51

个回答

  • 纯情的慕哥
    2020-04-16 02:42:49

    你是不是多配了一个库的配置