[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Gabriel Loewen updated JENKINS-49723 Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Gabriel Loewen Status: Fixed but Unreleased Resolved Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Gabriel Loewen updated JENKINS-49723 Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Gabriel Loewen Status: Open Fixed but Unreleased Resolution: Cannot Reproduce Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Ryan Taylor edited a comment on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing - Has there been any traction on this? I am experiencing a similar issue. - * - *Windows 2012 R2* - * - *Jenkins v2.141* - * - *Pipeline 2.5* - ** - Pipeline Graph Analysis Plugin 1.7 - ** - Pipeline: API 2.29 - ** - Pipeline: Basic Steps 2.10 - ** - Pipeline: Build Step 2.7 - ** - Pipeline: Declarative 1.3.2 - ** - Pipeline: Declarative Agent API 1.1.1 - ** - Pipeline: Declarative Extension Points API 1.3.2 - ** - Pipeline: Groovy 2.54 - ** - Pipeline: Input Step 2.8 - ** - Pipeline: Job 2.24 - ** - Pipeline: Milestone Step 1.3.1 - ** - Pipeline: Model API 1.3.2 - ** - Pipeline: Multibranch 2.20 - ** - Pipeline: Nodes and Processes 2.21 - ** - Pipeline: REST API Plugin 2.10 - ** - Pipeline: SCM Step 2.6 - ** - Pipeline: Shared Groovy Libraries 2.10 - ** - Pipeline: Stage Step 2.3 - ** - Pipeline: Stage Tags Metadata 1.3.2 - ** - Pipeline: Stage View Plugin 2.10 - ** - Pipeline: Step API 2.16 - ** - Pipeline: Supporting APIs 2.20 - - I did not have this issue before I upgraded Jenkins and Pipelines. Previously Jenkins was at v2.75. Pipelines plugins were generally a patch release behind. I am not sure which specific upgrade caused the issue. - I had more time to investigate and apparently this was due to our Jenkins instance having the PATH variable overridden. The overridden PATH did not include the path to PowerShell. When I added `C:\WINDOWS\System32\WindowsPowerShell\v1.0\` to the PATH my issue was resolved. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Ryan Taylor updated an issue Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Ryan Taylor Environment: Jenkins 2.89.3 and 2.89.4 running on Window 2008 R2 Jenkins 2.141 on Windows 2012 R2 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Ryan Taylor commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Has there been any traction on this. I am experiencing a similar issue. Windows 2012 R2 Jenkins v2.141 Pipeline 2.5 Pipeline Graph Analysis Plugin 1.7 Pipeline: API 2.29 Pipeline: Basic Steps 2.10 Pipeline: Build Step 2.7 Pipeline: Declarative 1.3.2 Pipeline: Declarative Agent API 1.1.1 Pipeline: Declarative Extension Points API 1.3.2 Pipeline: Groovy 2.54 Pipeline: Input Step 2.8 Pipeline: Job 2.24 Pipeline: Milestone Step 1.3.1 Pipeline: Model API 1.3.2 Pipeline: Multibranch 2.20 Pipeline: Nodes and Processes 2.21 Pipeline: REST API Plugin 2.10 Pipeline: SCM Step 2.6 Pipeline: Shared Groovy Libraries 2.10 Pipeline: Stage Step 2.3 Pipeline: Stage Tags Metadata 1.3.2 Pipeline: Stage View Plugin 2.10 Pipeline: Step API 2.16 Pipeline: Supporting APIs 2.20 I did not have this issue before I upgraded Jenkins and Pipelines. Previously Jenkins was at v2.75. Pipelines plugins were generally a patch release behind. I am not sure which specific upgrade caused the issue.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Ryan Taylor edited a comment on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Has there been any traction on this . ? I am experiencing a similar issue. * *Windows 2012 R2* * *Jenkins v2.141* * *Pipeline 2.5* ** Pipeline Graph Analysis Plugin 1.7 ** Pipeline: API 2.29 ** Pipeline: Basic Steps 2.10 ** Pipeline: Build Step 2.7 ** Pipeline: Declarative 1.3.2 ** Pipeline: Declarative Agent API 1.1.1 ** Pipeline: Declarative Extension Points API 1.3.2 ** Pipeline: Groovy 2.54 ** Pipeline: Input Step 2.8 ** Pipeline: Job 2.24 ** Pipeline: Milestone Step 1.3.1 ** Pipeline: Model API 1.3.2 ** Pipeline: Multibranch 2.20 ** Pipeline: Nodes and Processes 2.21 ** Pipeline: REST API Plugin 2.10 ** Pipeline: SCM Step 2.6 ** Pipeline: Shared Groovy Libraries 2.10 ** Pipeline: Stage Step 2.3 ** Pipeline: Stage Tags Metadata 1.3.2 ** Pipeline: Stage View Plugin 2.10 ** Pipeline: Step API 2.16 ** Pipeline: Supporting APIs 2.20I did not have this issue before I upgraded Jenkins and Pipelines. Previously Jenkins was at v2.75. Pipelines plugins were generally a patch release behind. I am not sure which specific upgrade caused the issue. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Thanks for looking at this! Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Gabriel Loewen commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Oh! That changes my prior assumption then. I do not know what kind of path issues we would hit in pipeline because there is no difference with how we execute powershell in pipeline from how it is executed in the powershell freestyle plugin except that in pipeline we add the -NoProfile command line argument as a security and performance measure to prevent powershell from automatically executing profile scripts. But, it's not even getting to that point... I'll have to investigate this further to understand what is happening here. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Works both ways for me, with and without the extension. I did this on the Windows 2008 R2 box which then makes me think it is some kind of path issue when run from within the pipeline. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson updated an issue Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Mike Henderson Attachment: image-2018-04-12-13-22-38-763.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Gabriel Loewen commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing That's not surprising, since the powershell plugin for freestyle jobs and in pipeline are not related Just to be clear, if you execute "powershell" without a .exe extension from a powershell prompt it fails? If this is the case then I can submit a small PR to always call powershell with extension Sam Van Oort. The reason that I did this was to avoid having separate code paths for windows powershell and open powershell since executing "powershell" without the added .exe extension worked fine on all versions of windows in my testing, and there is no concept of file extension in *nix platforms. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Yes, that seems to work fine. Also, other than pipeline, the powershell commands I call from Jenkins work fine too, if that helps. I have three nodes currently and I basically have just limited the jobs to run on the Windows 2016 node if it is a pipeline because the other two nodes with Window 2008 R2 fail still. I have a lot of older jobs though running standard "Freestyle project" and they execute on all of my nodes without issue and just about every one has a Powershell step. Thanks Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Gabriel Loewen commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Hmm, this is interesting. It looks like you are unable to launch powershell from a powershell session, or perhaps in Server 2008 you cannot launch an executable within the system path without adding the .exe extension? Could you open a powershell prompt and execute "powershell.exe" and let me know if that works? This could be a compat issue. When this was tested I made sure to test it on Windows Server 2012 R2, Windows Server 2016, Windows 10, and Windows 8 and I did not see this issue in any of those. Also, can you tell me what version of powershell you are using on Server 2008? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Sam Van Oort commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing Gabriel Loewen Could you please take a look? I think it might be some sort of weird back-compatibility quirk with Windows 2008. Thanks! Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Sam Van Oort assigned an issue to Gabriel Loewen Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Sam Van Oort Assignee: Gabriel Loewen Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing My new Jenkins server with Windows 2016 is working when jobs run locally, but if they run on a remote node with Windows 2008 R2, I still get this issue. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson commented on JENKINS-49723 Re: Powershell execution within GIT Multibranch pipeline failing I stood up a new instance of 2.89.4 with latest plugins on a Windows 2016 machine and this does not exhibit this issue. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Oleg Nenashev Component/s: pipeline Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Change By: Andrew Bayer Component/s: workflow-durable-task-step-plugin Component/s: pipeline Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.
[JIRA] (JENKINS-49723) Powershell execution within GIT Multibranch pipeline failing
Title: Message Title Mike Henderson created an issue Jenkins / JENKINS-49723 Powershell execution within GIT Multibranch pipeline failing Issue Type: Bug Assignee: Unassigned Components: pipeline Created: 2018-02-23 21:03 Environment: Jenkins 2.89.3 and 2.89.4 running on Window 2008 R2 Labels: pipeline Priority: Blocker Reporter: Mike Henderson I have been using Jenkins GIT Multibranch for a few weeks now. Today I upgraded to 2.89.4 and consequently my existing job started failing on the powershell execution: Started by user Mike Henderson > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://pbsorters.visualstudio.com/Sorter%20Projects/Sorter%20Projects%20Team/_git/Software_C_Sharp > C:\Program Files\Git\bin\git.exe config remote.origin.url https://pbsorters.visualstudio.com/Sorter%20Projects/Sorter%20Projects%20Team/_git/Software_C_Sharp timeout=10 Fetching origin... Fetching upstream changes from origin > C:\Program Files\Git\bin\git.exe --version # timeout=10 using GIT_ASKPASS to set credentials Jenkins Feb-2018 > C:\Program Files\Git\bin\git.exe fetch --tags --progress origin +refs/heads/:refs/remotes/origin/ Seen branch in repository origin/Release1.5 Seen branch in repository origin/Task11982 Seen branch in repository origin/TestJenkinsFile Seen branch in repository origin/sqa1.5 Seen 4 remote branches Obtained Jenkinsfile from 55e5fb519d6276a4b566d6dfdf5de88e395cc125 Running in Durab