Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter mismatch in OctopusPackNuGet@6 for nuget authors? #294

Closed
mmalvik opened this issue Feb 13, 2023 · 0 comments · Fixed by #298
Closed

Parameter mismatch in OctopusPackNuGet@6 for nuget authors? #294

mmalvik opened this issue Feb 13, 2023 · 0 comments · Fixed by #298

Comments

@mmalvik
Copy link

mmalvik commented Feb 13, 2023

Hi!

I believe there is a mismatch in the task definition and the parameter being read for Nuget authors.

If you use the assistant in Azure Devops to create a "Package Application for Octopus - NuGet" task, it will look like this:

- task: OctopusPackNuGet@6
  inputs:
    PackageId: 'test'
    PackageVersion: '1.2.3'
    NuGetDescription: 'My description'
    NuGetAuthors: 'Author 1'

Error

However if you try to run this step you get the following error:

##[error]"Failed to execute pack. Input required: NuGetAuthor
Error: Input required: NuGetAuthor
    at Object.getInput (/home/vsts/work/_tasks/OctopusPackNuGet_72e7a1b6-19bc-48e6-8d20-a81f201d65a3/6.0.465/node_modules/azure-pipelines-task-lib/task.js:226:15)
    at Zg (/home/vsts/work/_tasks/OctopusPackNuGet_72e7a1b6-19bc-48e6-8d20-a81f201d65a3/6.0.465/index.js:50:17712)
    at Gz (/home/vsts/work/_tasks/OctopusPackNuGet_72e7a1b6-19bc-48e6-8d20-a81f201d65a3/6.0.465/index.js:50:18580)
    at Object.<anonymous> (/home/vsts/work/_tasks/OctopusPackNuGet_72e7a1b6-19bc-48e6-8d20-a81f201d65a3/6.0.465/index.js:50:19079)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

Bug

Is there a mismatch in the task definition using NugetAuthors and the parameter NugetAuthor being read?

nuGetAuthors: getLineSeparatedItems(tasks.getInput("NuGetAuthor", true) || ""),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant