You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have different environments, one AppVeyor CI/CD, one "manual" executing build tasks from local shell
when running the Task manually (e.g. TestIntegration), I want to have it depending from Build, Analyze, ...
when running the Task in AppVeyor, I want it to have no dependency as AppVeyor itself separates between build_script and test_script. When running TestIntegration with the dependency it would build two times (once in build_script and once in TestIntegration through this dependency
I wanted to
define "TestIntegration" task without dependency in a separate file
separate two different psakeFile.ENVIRONMENT.ps1 for the Invoke-PSake
Include TestIntegration.ps1 in one of the psakeFile's as-is
Include TestIntegration.ps1 in the other psakeFile and set additional dependency
Expected Behavior
Defining PSake Tasks in other files "psake.MyTask.ps1"
Task MyTask {
Do-Something
}
Include PSake Task file
Include psake.MyTask.ps1
Add additional dependency
Task MyTask {} -Depends OtherTask
Current Behavior
Doing this above brings up an error:
WindowsPowerShell\Modules\psake\4.9.0\public\Assert.ps1:69 char:9+throw ('Assert: {0}'-f$failureMessage) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Assert: Task compile has already been defined.
Steps to Reproduce (for bugs)
see expected behaviour
Your Environment
Module version used: 4.9.0
Operating System and PowerShell version: Win 10 1909 PS 5.1
The text was updated successfully, but these errors were encountered:
Hi @UberDoodles
thanks for that reply...yeah would work.
I wanted to avoid to have different names again and wanted simply to use Includes but...accepted ;)
Thanks,
M.
The primary goal was the following:
Expected Behavior
Task MyTask {} -Depends OtherTask
Current Behavior
Doing this above brings up an error:
Steps to Reproduce (for bugs)
see expected behaviour
Your Environment
The text was updated successfully, but these errors were encountered: