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

Terraform Issue with Channel creation for Process Step of type Script which References Package #6831

Closed
FinnianDempsey opened this issue Apr 16, 2021 · 2 comments
Assignees
Labels
area/core kind/bug This issue represents a verified problem we are committed to solving

Comments

@FinnianDempsey
Copy link

The bug

When using the Terraform Octopus Deploy Plugin, a channel is able to be created without issue for Process Steps of type "Deploy a Package" however currently unable to create a channel where the Process Step is of type "Run a Script" which references a package. Previously created channels are able to be imported without issue.

This was tested and confirmed with @jbristowe

What I expected to happen

Terraform Plugin to be able to create channels with actions of type Process Step "Run a Script" which references a package.

Steps to reproduce

Requires a Package to be configured previously.

  1. Create a terraform configuration whose action will reference a Process Step of type "Run a Script":
resource "octopusdeploy_channel" "channel" {
  name = "test"
  project_id = "Projects-1"
  rule {
    actions = [
    "Run a Script/MyPackage"
    ]
    version_range = "1.0.0"
  }
}

Log excerpt

 Error: Octopus API error: Unable to find package reference  on deployment action Run a Script in project Projects-1 []

Affected versions

Lastest OctopusDeploy Terraform Plugin = 0.7.22

@FinnianDempsey FinnianDempsey added the kind/bug This issue represents a verified problem we are committed to solving label Apr 16, 2021
@jbristowe jbristowe self-assigned this Apr 16, 2021
@jbristowe
Copy link

jbristowe commented Apr 16, 2021

Our Go API client (go-octopusdeploy) is not serializing channel rules in the format that our API expects. This will be updated.

@jbristowe
Copy link

This has been fixed. Closing issue.

@kengel100 kengel100 added area/integrations These issues shouldn't be raised here, they should be raised in the Integration-specific repos area/core and removed area/integrations These issues shouldn't be raised here, they should be raised in the Integration-specific repos labels Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

3 participants