kokuwaio / helm-maven-plugin

Simple plugin to package helm charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

option to save the response message received from artifactory in a file after helm chart upload

kumadee opened this issue · comments

Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST
We are using this plugin to upload the chart to the artifactory.
I would like to have an option to save the response message received from artifactory in a file after upload is successfully finished, rather than just logging it on console.

12:18:54  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - --- helm:6.10.0:upload (upload) @ k8s ---
12:18:54  [main] INFO io.kokuwa.maven.helm.UploadMojo - Uploading to https://artifactory.example.com/artifactory/helm-dev/calculator/1.0.1/
12:18:54  
12:18:54  [main] INFO io.kokuwa.maven.helm.UploadMojo - Uploading /home/user/workspace/calculator/k8s/target/helm/repo/calculator-1.0.1.tgz...
12:18:54  [main] INFO io.kokuwa.maven.helm.UploadMojo - Returned: 201 - {
12:18:54    "repo" : "helm-dev",
12:18:54    "path" : "/calculator/1.0.1/calculator-1.0.1.tgz",
12:18:54    "created" : "2023-09-26T08:32:06.552Z",
12:18:54    "createdBy" : "****",
12:18:54    "downloadUri" : "https://artifactory.example.com:443/artifactory/helm-dev/calculator/1.0.1/calculator-1.0.1.tgz",
12:18:54    "mimeType" : "application/x-gzip",
12:18:54    "size" : "3592",
12:18:54    "checksums" : {
12:18:54      "sha1" : "65727a9d54a00ff1bc98f340ad0de24085ee37be",
12:18:54      "md5" : "c30db48ab18702cbdfefb985569c051c",
12:18:54      "sha256" : "b26c6fe5248bd34fcf29ee56a88042573cdbda85c8b0f8b66a28cb4f37959938"
12:18:54    },
12:18:54    "originalChecksums" : {
12:18:54      "sha256" : "b26c6fe5248bd34fcf29ee56a88042573cdbda85c8b0f8b66a28cb4f37959938"
12:18:54    },
12:18:54    "uri" : "https://artifactory.example.com:443/artifactory/helm-dev/calculator/1.0.1/calculator-1.0.1.tgz"
12:18:54  }

Environment (plugin version, maven version, OS, ...):
plugin version: 6.10.0
maven version: 3.9.4
OS: RHEL Linux 8

What happened:
Response message from artifactory is logged to the console after upload.

What you expected to happen:
Save the response message to a file as well. This later helps in reporting and cleanups if required.

How to reproduce it (as minimally and precisely as possible):
try to upload a chart to artifactory. Nothing fancy.

Anything else we need to know: Let me know, if you need any additional info