[JIRA] (JENKINS-34603) git scm poll not working with global environment variable
Title: Message Title Benjamin Cross updated an issue Jenkins / JENKINS-34603 git scm poll not working with global environment variable Change By: Benjamin Cross Steps to reproduce -Manage Jenkins => Configure System => Global properties => Environment variables Add Name = GITHUB_HOSTValue = Name = GITHUB_REPOValue = Create a job Under job configuration define git repository as below [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO}provide user/pass for credential complete the job configuration Trigger SCM poll by using curl (Note - provide your Jenkins host in following command)curl [ http://$ |http://%24/] {JENKINS_SERVER}/jenkins/git/notifyCommit?url=""> [ https://\$ |https://%24/] "\{GITHUB_HOST \ }"/\$"\{GITHUB_REPO \ }"It'll poll the corresponding job but if you see Git SCM poll log, it's dumping the following error {color: red #FF }In short - It's not able to expand the global variable {color} > /usr/bin/git --version # timeout=10 > /usr/bin/git -c core.askpass=true fetch --tags --progress [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO} +refs/heads/*:refs/remotes/origin/*FATAL: hudson.plugins.git.GitException: Failed to fetch from [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO}hudson.util.IOException2: hudson.plugins.git.GitException: Failed to fetch from [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO} at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:573) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1468) at hudson.model.AbstractProject._poll(AbstractProject.java:1438) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:526) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:555) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)Caused by: hudson.plugins.git.GitException: Failed to fetch from [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO} at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:701) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:571) ... 14 moreCaused by: hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress [ https://$ |https://%24/] {GITHUB_HOST}/${GITHUB_REPO} +refs/heads/*:refs/remotes/origin/*" returned status code 128:stdout: stderr: remote: Invalid username or password.
[JIRA] (JENKINS-34603) git scm poll not working with global environment variable
Title: Message Title Mark Waite updated an issue Jenkins / JENKINS-34603 git scm poll not working with global environment variable Change By: Mark Waite Priority: Critical Minor Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.170230.1462380806000.2320.1579489560659%40Atlassian.JIRA.
[JIRA] (JENKINS-34603) git scm poll not working with global environment variable
Title: Message Title Jeffrey Mendez commented on JENKINS-34603 Re: git scm poll not working with global environment variable I am also seeing this issue. Environment variables are not being substituted when polling runs. I am using an environment variable for my Branch Specifier in the SCM configuration. I have tried this in many versions of the Git Plugin. Version 3.0 is the latest, but version 2.3.4 is the last known working version that I have found. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.