Coder Social home page Coder Social logo

Comments (10)

jessehouwing avatar jessehouwing commented on May 14, 2024

I'd love it if we could use (at least some) of these modules in our own scripts. Especially the Find-Files task which would help porting existing MsBuild scripts to powershell.

from azure-pipelines-tasks.

chrispat avatar chrispat commented on May 14, 2024

You should be able to use them in your own tasks, however, as the modules are currently written they have too many dependencies to be loaded outside of the agent.

From: Jesse Houwing [mailto:[email protected]]
Sent: Wednesday, August 5, 2015 2:04 PM
To: Microsoft/vso-agent-tasks [email protected]
Subject: Re: [vso-agent-tasks] Document PowerShell Modules (#352)

I'd love it if we could use (at least some) of these modules in our own scripts. Especially the Find-Files task which would help porting existing MsBuild scripts to powershell.


Reply to this email directly or view it on GitHubhttps://github.com//issues/352#issuecomment-128093527.

from azure-pipelines-tasks.

jessehouwing avatar jessehouwing commented on May 14, 2024

But I can't seem to use them in my own powershell script, as that uses the powershellexe host. It would be very useful if we could use (at least some) of the functions in those type of scripts.

It would also make it a lot easier to test the task.ps1 scripts stand-alone to make them work as expected. Right now creating and debugging tasks by triggering builds is far from ideal.

from azure-pipelines-tasks.

bryanmacfarlane avatar bryanmacfarlane commented on May 14, 2024

Agreed! And that's why we're starting an effort to be able to run, test and debug tasks even outside the agent. We've made good progress on the xplat side and we're about to start a new powershell handler in the agent that offers the equivalent on PS side

Here's how we do it on the JS side - coming soon to PS
https://www.youtube.com/watch?v=Ta2c3sUbJ18

from azure-pipelines-tasks.

chrispat avatar chrispat commented on May 14, 2024

Yes we know that is an issue and it is something we are working on fixing, I don’t have an ETA yet but there are some other task model things we are working on for the fall.

From: Jesse Houwing [mailto:[email protected]]
Sent: Wednesday, August 5, 2015 5:01 PM
To: Microsoft/vso-agent-tasks [email protected]
Cc: Chris Patterson [email protected]
Subject: Re: [vso-agent-tasks] Document PowerShell Modules (#352)

But I can't seem to use them in my own powershell script, as that uses the powershellexe host. It would be very useful if we could use (at least some) of the functions in those type of scripts.

It would also make it a lot easier to test the task.ps1 scripts stand-alone to make them work as expected. Right now creating and debugging tasks by triggering builds is far from ideal.


Reply to this email directly or view it on GitHubhttps://github.com//issues/352#issuecomment-128147212.

from azure-pipelines-tasks.

jessehouwing avatar jessehouwing commented on May 14, 2024

Great news!
On Aug 5, 2015 11:04 PM, "Chris Patterson" [email protected] wrote:

Yes we know that is an issue and it is something we are working on fixing,
I don’t have an ETA yet but there are some other task model things we are
working on for the fall.

From: Jesse Houwing [mailto:[email protected]]
Sent: Wednesday, August 5, 2015 5:01 PM
To: Microsoft/vso-agent-tasks [email protected]
Cc: Chris Patterson [email protected]
Subject: Re: [vso-agent-tasks] Document PowerShell Modules (#352)

But I can't seem to use them in my own powershell script, as that uses the
powershellexe host. It would be very useful if we could use (at least some)
of the functions in those type of scripts.

It would also make it a lot easier to test the task.ps1 scripts
stand-alone to make them work as expected. Right now creating and debugging
tasks by triggering builds is far from ideal.


Reply to this email directly or view it on GitHub<
https://github.com/Microsoft/vso-agent-tasks/issues/352#issuecomment-128147212>.


Reply to this email directly or view it on GitHub
#352 (comment)
.

from azure-pipelines-tasks.

DaveSullivanAtWork avatar DaveSullivanAtWork commented on May 14, 2024

Just watched the video, can't wait for it to be available for PS development too.

from azure-pipelines-tasks.

bryanmacfarlane avatar bryanmacfarlane commented on May 14, 2024

closing as we're tracking this work on our backlog

from azure-pipelines-tasks.

peder avatar peder commented on May 14, 2024

@bryanmacfarlane: this item was closed since it was tracked on your backlog, but was there ever an update to this? Any blog post or wiki article we could use as a technical reference?

from azure-pipelines-tasks.

ericsciple avatar ericsciple commented on May 14, 2024

The PowerShell task execution handler still works for back-compat, but has been superceded by the "PowerShell3" task execution handler. The source and docs are here.

from azure-pipelines-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.