Hi all. Having an issue with the Jenkins plugin. Created a pipeline like the following:
octopusPushBuildInformation additionalArgs: '', commentParser: 'GitHub', overwriteMode: 'OverwriteExisting', packageId: 'myproject-s3', packageVersion: "${version}.${BUILD_NUMBER}", toolId: 'Default', verboseLogging: false, serverId: "My_Server", spaceId: "Default", gitBranch: "${MY_BRANCH}"
octopusCreateRelease additionalArgs: "", cancelOnTimeout: false, channel: '', defaultPackageVersion: '', deployThisRelease: false, deploymentTimeout: '', jenkinsUrlLinkback: true, project: "myproject-s3", releaseNotes: false, releaseNotesFile: '', releaseVersion: "${version}.${BUILD_NUMBER}", tenant: '', tenantTag: '', toolId: 'Default', verboseLogging: true, waitForDeployment: false, serverId: "My_Server", spaceId: "Default"
Release creates successfully, but getting 404:
Release 6.53.0.9 created successfully!
INFO: Octopus CLI exit code: 0
ERROR: Failed to generate build summary: Code 404 -
<!DOCTYPE html><html lang="en"> <head> <title>Octopus Deploy</title> <style> .content{ display: flex; align-items: center; height: 100vh; justify-content: center; flex-direction: column; } .fatal-error-details { text-align: left; } body { font-size: 1rem; font-family: "Roboto",Helvetica,Arial,sans-serif; overflow: auto; margin: 0; padding: 0; background: #fafafa; letter-spacing: 0.25px; } </style> </head> <body> <div class="content"> <img src="/octoclippy.3309599f0ed7ede136239299b755f3cb.hashedasset.svg" width="64" height="64" alt="Octoclippy is here to help!" title="Octoclippy is here to help!"> <h2>Oops! Something went wrong...</h2> <pre class="fatal-error-details"> {"title":"Not found","message":"The resource you requested was not found.","details":{"ErrorMessage":"The resource you requested was not found."}} </pre> </div> </body></html>
java.io.IOException: Code 404 -
<!DOCTYPE html><html lang="en"> <head> <title>Octopus Deploy</title> <style> .content{ display: flex; align-items: center; height: 100vh; justify-content: center; flex-direction: column; } .fatal-error-details { text-align: left; } body { font-size: 1rem; font-family: "Roboto",Helvetica,Arial,sans-serif; overflow: auto; margin: 0; padding: 0; background: #fafafa; letter-spacing: 0.25px; } </style> </head> <body> <div class="content"> <img src="/octoclippy.3309599f0ed7ede136239299b755f3cb.hashedasset.svg" width="64" height="64" alt="Octoclippy is here to help!" title="Octoclippy is here to help!"> <h2>Oops! Something went wrong...</h2> <pre class="fatal-error-details"> {"title":"Not found","message":"The resource you requested was not found.","details":{"ErrorMessage":"The resource you requested was not found."}} </pre> </div> </body></html>
at com.octopusdeploy.api.ProjectsApi.getAllProjects(ProjectsApi.java:31)
at com.octopusdeploy.api.ProjectsApi.getProjectByName(ProjectsApi.java:64)
at hudson.plugins.octopusdeploy.OctopusDeployReleaseRecorder.AddBuildSummary(OctopusDeployReleaseRecorder.java:427)
at hudson.plugins.octopusdeploy.OctopusDeployReleaseRecorder.perform(OctopusDeployReleaseRecorder.java:407)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
When I ran the same commands using cli, no errors happening.
Couldn’t open an issue in the github project GitHub - jenkinsci/octopusdeploy-plugin: Jenkins plugin which integrates with Octopus Deploy, as there is no such option. Maybe somebody faced the similar issue and can suggest?
Thanks in advance.