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

Introduce jenkins_setup command to be reused #5315

Merged
merged 1 commit into from
Oct 9, 2017

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Oct 4, 2017

jenkins_setup in common.bash will also be used for the generator tests.

@ruflin ruflin added the in progress Pull request is currently in progress. label Oct 4, 2017
@ruflin ruflin force-pushed the jenkins-setup branch 3 times, most recently from 6811039 to 963a521 Compare October 4, 2017 09:12
@ruflin ruflin added :Testing review and removed in progress Pull request is currently in progress. labels Oct 4, 2017
@ruflin ruflin requested a review from andrewkroh October 4, 2017 09:32
@ruflin
Copy link
Contributor Author

ruflin commented Oct 4, 2017

jenkins, retest it

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

Good idea.

#!/usr/bin/env bash
set -euox pipefail

: "${HOME:?Need to set HOME to a non-empty value.}"
Copy link
Member

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.

@@ -0,0 +1,20 @@
#!/usr/bin/env bash

#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

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

You have two hashbangs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

#!/usr/bin/env bash

#!/usr/bin/env bash
set -euox pipefail
Copy link
Member

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.

Copy link
Contributor Author

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.
@ruflin ruflin changed the title Introduce jenkins_setup.sh to be reused Introduce jenkins_setup command to be reused Oct 6, 2017
@ruflin
Copy link
Contributor Author

ruflin commented Oct 6, 2017

@andrewkroh I updated the PR accordingly

if [ -f ".go-version" ]; then
eval "$(gvm $(cat .go-version))"
else
eval "$(gvm 1.7.5)"
Copy link
Member

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.

Copy link
Contributor Author

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.

@andrewkroh andrewkroh merged commit f9ac23f into elastic:master Oct 9, 2017
@ruflin ruflin deleted the jenkins-setup branch October 9, 2017 19:18
ruflin added a commit to ruflin/beats that referenced this pull request Oct 9, 2017
jenkins_setup in common.bash will also be used for the generator tests.

(cherry picked from commit f9ac23f)
ruflin added a commit to ruflin/beats that referenced this pull request Oct 9, 2017
jenkins_setup in common.bash will also be used for the generator tests.

(cherry picked from commit f9ac23f)
exekias pushed a commit that referenced this pull request Oct 10, 2017
jenkins_setup in common.bash will also be used for the generator tests.

(cherry picked from commit f9ac23f)
exekias pushed a commit that referenced this pull request Oct 10, 2017
jenkins_setup in common.bash will also be used for the generator tests.

(cherry picked from commit f9ac23f)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…5365)

jenkins_setup in common.bash will also be used for the generator tests.

(cherry picked from commit b02785a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants