-
Notifications
You must be signed in to change notification settings - Fork 240
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
Enhancements to Release Bundle Create Command: Optional Flags and Fallback Support #2772
Conversation
6e7bcf1
to
5fe48da
Compare
5fe48da
to
bc2fd42
Compare
bc2fd42
to
267e7d1
Compare
267e7d1
to
57f6280
Compare
57f6280
to
d737680
Compare
utils/cliutils/commandsflags.go
Outdated
BuildName = "build-name" | ||
BuildNumber = "build-number" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to define the above two consts.
You should reuse the existing buildName
and buildNumber
consts defined above.
0133b7b
to
f2255a0
Compare
f2255a0
to
0c0792f
Compare
0c0792f
to
94767c5
Compare
t.Setenv("JFROG_CLI_BUILD_NAME", "Common-builds") | ||
t.Setenv("JFROG_CLI_BUILD_NUMBER", "2.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When test functions set env vars, they must also remove them at the end. There's already a tulity function in the code that takes care of this. Check other tests asa reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way you set the variables is unsafe. You should use the SetEnvWithCallbackAndAssert
API.
f1e827c
to
4745631
Compare
4745631
to
fd666de
Compare
… and Fallback Support (jfrog#2772)" This reverts commit a124f63.
dev
branch.go vet ./...
.go fmt ./...
.Improvements to the release bundle create command:
spec
flag optional, withbuild-name
andbuild-number
flags as replacements.JFROG_CLI_BUILD_NAME
andJFROG_CLI_BUILD_NUMBER
as fallback options when thebuild-name
andbuild-number
flags are not provided.documentation - https://github.com/jfrog/documentation/pull/173/files