-
Notifications
You must be signed in to change notification settings - Fork 7
[CI] Enable multibranch pipeline #4
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
Conversation
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
| name 'RUBY_VERSION' | ||
| values 'ruby:2.7', 'ruby:2.6', 'ruby:2.5', 'ruby:2.4', 'ruby:2.3', 'jruby:9.2', 'jruby:9.1' |
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.
List of supported ruby versions to be tested:
- This is a subset of the existing ones in https://github.com/elastic/apm-agent-ruby/blob/master/.ci/.jenkins_ruby.yml
.ci/Jenkinsfile
Outdated
| name 'FRAMEWORK' | ||
| values 'rails-6.0', 'rails-5.2', 'rails-5.1', 'rails-4.2', 'sinatra-2.0', 'sinatra-1.4' |
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.
List of supported frameworks to be tested:
- This is a subset of the existing ones in https://github.com/elastic/apm-agent-ruby/blob/master/.ci/.jenkins_framework.yml
| ENV PATH=/app/bin:$BUNDLE_BIN:$PATH | ||
|
|
||
| ENV FRAMEWORKS $FRAMEWORKS | ||
| ENV RUBY_IMAGE $RUBY_IMAGE |
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.
This will help to generate junit files with the ruby_image value in their names
bin/dev
Outdated
| ' docker-compose run' \ | ||
| ' --rm' \ | ||
| " specs #{ARGV.join}" | ||
| exit $?.exitstatus unless $?.success? |
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 something goes wrong then this will help to report back the error
| #!/bin/bash | ||
| set -x | ||
|
|
||
| runRspec(){ |
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.
Delegate the how to the function then junit reporting are generated with a different name
This reverts commit 0d34bb0.
… a docker container
| # Copy cached folder to speed up docker containers | ||
| COPY vendor /vendor | ||
| RUN chown -R $USER_ID_GROUP /vendor |
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.
This is required to use the cached artifacts if required, otherwise the docker build uses the VENDOR_PATH but the docker run overrides it, as a consequence it fails in the CI.
When building a docker image there is now way to mount volumes but using the COPY, this will help to reuse the existing local cache artifacts.
This reverts commit 56ec9f9.
mikker
left a comment
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.
This is SO GOOD, Victor! Can we bring some of this back to the agent's setup? The split GH checks, the caching changes, whatever else you have in store 😊
Co-authored-by: Mikkel Malmberg <mikkel@brnbw.com>
|
@mikker , see the comment -> #4 (comment) It contains all the digested details from the build, so it might be easier |

What
apm-agent-rubywith theyarjufdependency.COPYdirective to enable the caching for the docker build, since docker run overrides the/vendorfolder.Why
Use CI Jenkins to run the builds/tests for this project
Questions