-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Introduce jenkins_setup command to be reused #5315
Conversation
6811039
to
963a521
Compare
jenkins, retest it |
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.
Good idea.
dev-tools/jenkins_setup.sh
Outdated
#!/usr/bin/env bash | ||
set -euox pipefail | ||
|
||
: "${HOME:?Need to set HOME to a non-empty value.}" |
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.
I think this could go into common.bash as a function like jenkins_setup
.
dev-tools/jenkins_setup.sh
Outdated
@@ -0,0 +1,20 @@ | |||
#!/usr/bin/env bash | |||
|
|||
#!/usr/bin/env bash |
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.
You have two hashbangs.
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.
removed
dev-tools/jenkins_setup.sh
Outdated
#!/usr/bin/env bash | ||
|
||
#!/usr/bin/env bash | ||
set -euox pipefail |
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.
If this is going to be used a library by other scripts then I would omit this and the hashbangs.
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.
removed
jenkins_setup in common.bash will also be used for the generator tests.
@andrewkroh I updated the PR accordingly |
if [ -f ".go-version" ]; then | ||
eval "$(gvm $(cat .go-version))" | ||
else | ||
eval "$(gvm 1.7.5)" |
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.
We could remove this now that .go-version
should be on this branch.
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.
Will do that in a follow up PR.
jenkins_setup in common.bash will also be used for the generator tests. (cherry picked from commit f9ac23f)
jenkins_setup in common.bash will also be used for the generator tests. (cherry picked from commit f9ac23f)
jenkins_setup in common.bash will also be used for the generator tests.