-
Notifications
You must be signed in to change notification settings - Fork 15
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
jira/notify fails when a git repo isn't present #22
Comments
Interesting thanks for the info @tmannherz . I was not planning for this situation. I'll take a look at that and see why we call it "early" and see what we can do. |
We're currently running this as a |
Planning on having this and various other fixes out today |
@tmannherz / @mustangJaro |
Would you be able to use this value? It seems that CircleCI has all of the information we need without checking out the code because it displays the commit hash and message.
If that doesn't work than we could use a combination of the |
Thank you. Yes so, we can use the pipeline parameter, however somewhat unfortunately it would need to be specified manually in the same way the others are. Kind of like this: - jira/notify:
pipeline_id: "<< pipeline.id >>"
pipeline_number: "<< pipeline.number >>"
commit_message: "<< pipeline.trigger_parameters.github_app.commit_message >>" I will assume we probably don't want that, it has the added anti-benefit of being unable to scale/fix in the future to grab multiple commit messages. Looking at https://circleci.com/docs/variables/#built-in-environment-variables, The next complication I think is then fetching the commit/branch data from the source, GitHub/BitBucket which will more than likely need to be an authenticated call, which means injecting some kind of token into the context as well. With a scoped token, not the worst thing that could happen, but a bit annoying I think as a user, and the code will be a bit bulky. Another potential option might just be to run the |
@KyleTryon looking at the source of the 1.3.1 orb, it pulled the key via:
Is that still possible? https://github.com/CircleCI-Public/jira-connect-orb/blob/master/src/commands/notify.yml |
It is, but then it would require a personal circleci access token, which we were trying to avoid. It is not the most secure option for sending a notification. The token is long-lived and has wide access. |
If you run the
jira/notify
(orb version 2.0.1) step in a job where there isn't a git repo, the task fails with:It looks like the orb is running commands like
git tag...
and that's failing.Version 1.3.1 of the orb didn't have any issue running on the same job within our workflow.
Our use case for this is a job that uses AWS CodeDeploy to trigger a deployment of containers built in a previous step, that then reports a successful deploy to Jira (among other things).
The text was updated successfully, but these errors were encountered: