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

Fix rbc command to accept project with no spec #2884

Merged
merged 16 commits into from
Feb 26, 2025

Conversation

bhanurp
Copy link
Collaborator

@bhanurp bhanurp commented Feb 24, 2025

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

Depends On

jfrog/jfrog-cli-core#1356

Fixes #2874

@bhanurp bhanurp added the bug Something isn't working label Feb 24, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 24, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 24, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 24, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 24, 2025
lifecycle/cli.go Outdated
@@ -222,7 +222,7 @@ func getReleaseBundleCreationSpec(c *cli.Context) (*spec.SpecFiles, error) {
buildNumber := getStringFlagOrEnv(c, cliutils.BuildNumber, coreutils.BuildNumber)

if buildName != "" && buildNumber != "" {
return speccore.CreateSpecFromBuildNameAndNumber(buildName, buildNumber)
return speccore.CreateSpecFromBuildNameAndNumber(buildName, buildNumber, cliutils.GetProject(c))
Copy link
Contributor

@EyalDelarea EyalDelarea Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
Let's just add e2e tests to verify the release bundle is being created at the right project

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added new test TestCreateBundleWithoutSpecAndWithProject

@bhanurp bhanurp marked this pull request as ready for review February 26, 2025 06:02
@bhanurp bhanurp changed the title Fix for #2874 release-bundle-create is not working with projects Fix rbc command to accept project with no spec Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp requested a review from EyalDelarea February 26, 2025 09:49
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Feb 26, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Feb 26, 2025
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@bhanurp bhanurp merged commit 0286a81 into jfrog:dev Feb 26, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jf rbc (release-bundle-create) is not working when using Artifactory projects
2 participants