jakobehn / VSTSGitHubTasks

MIT License
21 stars 10 forks source link

error in visualstudio.com build #12

Closed wujun4code closed 7 years ago

wujun4code commented 7 years ago
2017-01-12T07:14:36.2082533Z ##[section]Starting: Publish GitHub Release v20170112.2
2017-01-12T07:14:36.2092531Z ==============================================================================
2017-01-12T07:14:36.2092531Z Task         : Publish GitHub Release
2017-01-12T07:14:36.2092531Z Description  : Publish GitHub Release including uploading assets
2017-01-12T07:14:36.2092531Z Version      : 0.10.1
2017-01-12T07:14:36.2092531Z Author       : Jakob Ehn
2017-01-12T07:14:36.2092531Z Help         : [More Information](https://github.com/jakobehn/VSTSGitHubTasks)
2017-01-12T07:14:36.2092531Z ==============================================================================
2017-01-12T07:14:36.2102529Z Preparing task execution handler.
2017-01-12T07:14:36.6752537Z Executing the powershell script: C:\a\_tasks\PublishGitHubRelease_52a55b38-da88-4272-9cb5-8627a5197311\0.10.1\PublishGitHubRelease.ps1
2017-01-12T07:14:37.2832536Z ##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'GitSourceUrl' because it is an empty string.
2017-01-12T07:14:37.2832536Z    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
2017-01-12T07:14:37.2832536Z    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
2017-01-12T07:14:37.2832536Z    at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
2017-01-12T07:14:37.2832536Z    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2017-01-12T07:14:37.2992527Z ##[error]PowerShell script completed with 1 errors.
2017-01-12T07:14:37.2992527Z ##[section]Finishing: Publish GitHub Release v20170112.2
wujun4code commented 7 years ago

image

missing the input parameters GitSourceUrl

jessehouwing commented 7 years ago

Running into the same issues.

jessehouwing commented 7 years ago

Workaround:

Alternate workaround

Caused by:

jakobehn commented 7 years ago

Uploaded new version with correct PS code (0.10.3)

wujun4code commented 7 years ago

I tried the latest version, there is no errors now. Thanks @jakobehn .