[JIRA] (JENKINS-48803) Powershell under linux have changed the command to pwsh

2020-03-06 Thread joseph...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joseph Petersen assigned an issue to Joseph Petersen  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-48803  
 
 
  Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
Change By: 
 Joseph Petersen  
 
 
Assignee: 
 Joseph Petersen  (old)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.187581.1515087338000.1366.1583561236996%40Atlassian.JIRA.


[JIRA] (JENKINS-48803) Powershell under linux have changed the command to pwsh

2019-11-01 Thread joseph...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joseph Petersen edited a comment on  JENKINS-48803  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
 powershell and pwsh are now both a step in pipelineReleased as [2.35| [ https://github.com/jenkinsci/workflow-durable-task-step-plugin/blob/workflow-durable-task-step-2.35/CHANGELOG.md#235] ]  
 

  
 
 
 
 

 
 
 

 
 
 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.187581.1515087338000.7045.1572628440336%40Atlassian.JIRA.


[JIRA] (JENKINS-48803) Powershell under linux have changed the command to pwsh

2019-11-01 Thread joseph...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joseph Petersen edited a comment on  JENKINS-48803  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
 powershell and pwsh are now both a step in pipeline Released as  [  2.35 |[https://github.com/jenkinsci/workflow-durable-task-step-plugin/blob/workflow-durable-task-step-2.35/CHANGELOG.md#235]]  
 

  
 
 
 
 

 
 
 

 
 
 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.187581.1515087338000.7041.1572627420140%40Atlassian.JIRA.


[JIRA] (JENKINS-48803) Powershell under linux have changed the command to pwsh

2019-11-01 Thread joseph...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joseph Petersen resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Released as 2.35  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-48803  
 
 
  Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
Change By: 
 Joseph Petersen  
 
 
Status: 
 Open Resolved  
 
 
Assignee: 
 Liam Leane Joseph Petersen  
 
 
Resolution: 
 Fixed  
 
 
Released As: 
 https://github.com/jenkinsci/workflow-durable-task-step-plugin/blob/workflow-durable-task-step-2.35/CHANGELOG.md#235  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   

[JIRA] (JENKINS-48803) Powershell under linux have changed the command to pwsh

2018-11-27 Thread onod...@mail.ru (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexey Marin commented on  JENKINS-48803  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
 Discussing in this PR shows it's dangerous to use "isUnix()" to choose the binary. Plus, there are Windows Server distributions that only have pwsh.exe. What if the plugin actually exposed two commands? 

 

powershell 'gci .' //launches Windows PowerShell
pwsh 'gci .' //launches PowerShell Core
 

 The only drawback I see is you won't be able to have a truly cross-platform pipeline unless you install PowerShell Core on all your Windows agents. Alternative solution: keep only one command and: 
 
if the system is detected as Unix, use `which pwsh` and then `which powershell` to check for the correct binary 
if the system is detected as Windows, use `where.exe pwsh` and then `where.exe powershell` to check for the correct binary 
  
 

  
 
 
 
 

 
 
 

 
 
 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-48803) Powershell under linux have changed the command to pwsh

2018-11-27 Thread onod...@mail.ru (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexey Marin edited a comment on  JENKINS-48803  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Powershell under linux have changed the command to pwsh   
 

  
 
 
 
 

 
 Discussing in this PR shows it's dangerous to use "isUnix()" to choose the binary. Plus, there are Windows Server distributions that only have pwsh.exe. What if the plugin actually exposed two commands?{code:java}powershell 'gci .' //launches Windows PowerShellpwsh 'gci .' //launches PowerShell Core{code}The only drawback I see is you won't be able to have a truly cross-platform pipeline unless you install PowerShell Core on all your Windows agents. Alternative solution: keep only one command and: * if the system is detected as Unix, use `which pwsh` and then `which powershell` to check for the correct binary * if the system is detected as Windows, use `where.exe pwsh .exe ` and then `where.exe powershell .exe ` to check for the correct binary  
 

  
 
 
 
 

 
 
 

 
 
 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.