Build Worker :: PowerShell 5.0

Trevor Sullivan's Avatar

Trevor Sullivan

22 Jul, 2015 12:14 AM

Hello,

I am working on a PowerShell project that requires the latest preview build of PowerShell 5.0 (April 2015). The "build worker software" page doesn't indicate which version of PowerShell is installed on the build worker image, however.

How can I ensure that PowerShell 5.0 is installed on my build worker? It requires a reboot, so can I have an "init" script that installs it, and reboots the build worker?

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Jul, 2015 05:10 AM

    Feodor Fitsner's Avatar

    Hi Trevor,

    PowerShell 5.0 (April 2015) is installed on unstable image.

  2. 2 Posted by Trevor Sullivan on 22 Jul, 2015 02:39 PM

    Trevor Sullivan's Avatar

    Feodor,

    Thanks for the quick response / pointer. I'll take a look at the `unstable` image.

    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell

  3. 3 Posted by Trevor Sullivan on 22 Jul, 2015 04:06 PM

    Trevor Sullivan's Avatar

    Feodor,

    Where are the docs that talk about the unstable image? I Google'd appveyor image yaml but don't see any references to the unstable image.

    http://www.appveyor.com/docs/build-configuration

    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell

  4. Support Staff 4 Posted by Feodor Fitsner on 22 Jul, 2015 05:59 PM

    Feodor Fitsner's Avatar

    It's not documented mainly because unstable image is a place for installing any experimental/beta stuff.

    We'll re-do this image to have VS 2015 and then install PS 5.0 April update.

  5. 5 Posted by Nicolai on 22 Oct, 2015 12:55 PM

    Nicolai's Avatar

    I'm using Visual Studio 2015 image right now, but that contains Powershell Version 1 ?
    May you update it to at least version 3.0+ ?

    I really need Convert-FromJson

    Or is there other things I can use to convert a array string to an object in PS?

  6. Support Staff 6 Posted by Feodor Fitsner on 22 Oct, 2015 01:47 PM

    Feodor Fitsner's Avatar

    The correct cmdlet name is 'ConvertFrom-Json' and it's available.

    - Feodor

  7. 7 Posted by Nicolai on 22 Oct, 2015 08:08 PM

    Nicolai's Avatar

    Second stupid mistake today, where is it going to end?

    Thanks Feodor, love your product! :-)

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac