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

commit referencing issue an another repo causes pipeline to break #1094

Closed
ryandawsonuk opened this issue Jun 20, 2018 · 0 comments
Closed
Assignees

Comments

@ryandawsonuk
Copy link

I made a commit that references an issue in another repo (i.e. not the repo that I pushed to). From the failure message it looks like jx assumes the hash to be referring to an issue in my repo and then errors when it can't find it.

Unable to find user: jenkins-x.googlegroups.com -- users.jenkins.io "jenkins-x.googlegroups.com" not found
Unable to find user: jenkins-x.googlegroups.com -- users.jenkins.io "jenkins-x.googlegroups.com" not found
Finding issues in commit messages using git format
WARNING: Failed to find issue 314 for repository https://github.com/ryandawsonuk/activiti-cloud-gateway
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb8 pc=0x1688aea]

goroutine 1 [running]:
github.com/jenkins-x/jx/pkg/jx/cmd.(*StepChangelogOptions).addIssuesAndPullRequests(0xc4201141c0, 0xc4201164c8, 0xc4206373c0, 0xc42043def0, 0x1a, 0x0)
/home/jenkins/go/src/github.com/jenkins-x/jx/pkg/jx/cmd/step_changelog.go:503 +0x2da
github.com/jenkins-x/jx/pkg/jx/cmd.(*StepChangelogOptions).addCommit(0xc4201141c0, 0xc4201164c8, 0xc42043def0)
/home/jenkins/go/src/github.com/jenkins-x/jx/pkg/jx/cmd/step_changelog.go:462 +0x1e8
github.com/jenkins-x/jx/pkg/jx/cmd.(*StepChangelogOptions).Run(0xc4201141c0, 0xc4205b7c50, 0x0)
/home/jenkins/go/src/github.com/jenkins-x/jx/pkg/jx/cmd/step_changelog.go:336 +0xe46
github.com/jenkins-x/jx/pkg/jx/cmd.NewCmdStepChangelog.func1(0xc420438280, 0xc42049dea0, 0x0, 0x2)
/home/jenkins/go/src/github.com/jenkins-x/jx/pkg/jx/cmd/step_changelog.go:154 +0x73
github.com/jenkins-x/jx/vendor/github.com/spf13/cobra.(*Command).execute(0xc420438280, 0xc42049de80, 0x2, 0x2, 0xc420438280, 0xc42049de80)
/home/jenkins/go/src/github.com/jenkins-x/jx/vendor/github.com/spf13/cobra/command.go:766 +0x2c1
github.com/jenkins-x/jx/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420091680, 0xc4201a6500, 0xc4204e0000, 0xc4201ac780)
/home/jenkins/go/src/github.com/jenkins-x/jx/vendor/github.com/spf13/cobra/command.go:852 +0x334
github.com/jenkins-x/jx/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420091680, 0xc42049cf20, 0x27aca00)
/home/jenkins/go/src/github.com/jenkins-x/jx/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/jenkins-x/jx/cmd/jx/app.Run(0xc4205c9f70, 0x16e6549)
/home/jenkins/go/src/github.com/jenkins-x/jx/cmd/jx/app/jx.go:18 +0x90
main.main()
/home/jenkins/go/src/github.com/jenkins-x/jx/cmd/jx/jx.go:10 +0x22

@rajdavies rajdavies added the bug label Jun 20, 2018
@jstrachan jstrachan self-assigned this Jun 21, 2018
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

No branches or pull requests

3 participants