Comments (10)
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.
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.
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.
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.
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.
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.
Just watched the video, can't wait for it to be available for PS development too.
from azure-pipelines-tasks.
closing as we're tracking this work on our backlog
from azure-pipelines-tasks.
@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.
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)
- [enhancement]: Conditional overrideParameters
- [BUG]: GitHubRelease@1 does not output error message when failing to upload artifacts to release
- [BUG]: Referring to other files in SQL Pre-deployment script using Devops Self-Hosted agent
- Bug: Docker@2 task does not support arguments when command is buildAndPush
- [BUG]: InstallAppleCertificate STILL fails to install certificates HOT 1
- [BUG]: AzurePowershell@5 issues with `_removecontext.ps1` location HOT 11
- [BUG]: Java 21 deployment doesn't work on AzureSpringCloud@0 HOT 4
- [BUG]: Publish Code Coverage Report fails to produce code coverage results. Worked in 2.225.0 - broken in 2.234.0 and remains broken in 2.236.0 HOT 3
- [BUG]: dotnet restore does not take input parameter 'projects' anymore HOT 1
- [BUG]: CI/CD Pipeline Failures: Unresolved 'master.dacpac' References (Workaround by VM Image Downgrade & VS Update) HOT 1
- [BUG]: PackerBuildV1 no longer able to retrieve installed packer version due to changes in `packer --version` output format.
- [enhancement]: don't pass --progress to git fetch HOT 1
- [BUG]: DotNetCoreCLI@2 hangs on "dotnet tool update" commands indefinitely with "The STDIO streams did not close within 10 seconds of the exit event from process" HOT 2
- [BUG]: (CopyFilesOverSSHV0) TypeError: Cannot read property 'getPrivatePEM' of undefined. HOT 5
- [enhancement]: DotNetCoreCLI@2 should support test plans HOT 1
- [BUG]: Problem using UsePythonVersion@0 HOT 1
- [BUG]: Always 0% count while uploading artifact
- [enhancement]: Update SqlAzureDacpacDeploymentV1 to include SQL Server support
- [BUG]: AzureWebApp@1- Error Description: Protocol "https:" not supported. Expected "http:" HOT 10
- [Question]: can I set signingOptionForExport alone with signingOption HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.