Comments (2)
Hiyo!
Strange! I'll play around with it when I have a few minutes, might be a little while (about to head out of town).
Long story short, each layer dot sources the scriptblock... so in your working example:
- Deploy sets up collection and...
- Dot sources scriptblock for By Task
- Dot sources nested FromSource
- Dot sources scriptblock for By Noop
Something might be off in the logic - it seems like you should see the env bits you set even in your first example, as long as the task runs first, but there might be some oddity in the code.
Cheers!
from psdeploy.
Actually the only way it did work out for me in the end is to setup the enviroment variables in a powershell script before i call the Invoke-PSDeploy command. I have not managed to setup enviroment variables in a task so that another part of the psdeploy.ps1 file could pic the variables up then.
from psdeploy.
Related Issues (20)
- DependingOn not working as expected (ordering wrong) HOT 5
- AppVeyor deployment not supporting subfolder for nupkg HOT 1
- Deployment fails on Linux HOT 3
- Move FileSystem tests out of the main function tests.
- Appveyor module fails when running in Powershell 6.0 HOT 1
- AppVeyor deployment: NuGet: An error occurred while parsing EntityName errors
- Shadow-Copy Function Throws Exception when run on PS Core on Linux or OSX HOT 7
- [Suggestion] Using name instead of path parameter in PSGalleryModule deployment type
- Invoke-Robocopy FatalError with /xf parameter
- Search for *psdeploy.ps1 is case sensitive on Unix systems
- GitHub Release DeploymentType HOT 2
- Please upgrade to latest YamlDotNet
- New Deployment Type: Azure Automation runbook HOT 2
- My psd1 version and psgallery version don't update.
- RequiredModules breaks PSGallery deploy type to private nuget repo HOT 1
- By Filesystem on PS Core fails with error HOT 1
- Upcoming major releases of Chocolatey products that may impact functionality on the integration HOT 1
- New Deployment Type: SCP HOT 2
- Filter deploy based on Tag/TagName and pre-release status HOT 7
- PSGalleryModule - Make ApiKey optional HOT 4
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 psdeploy.