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

Refactor Foreman plugins to pipeline plugins #1227

Closed
wants to merge 4 commits into from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 3, 2020

This is an effort to remove the workflow jobs in favor of pipelines. Currently still a bit of WIP. It doesn't convert virt-who yet since that needs katello and does some odd things. Also includes some other commits I needed to provision a fresh Jenkins master + slave.

stage('Unit Tests') {
steps {
dir('foreman') {
withRVM(['bundle exec rake jenkins:unit TESTOPTS="-v" --trace'], ruby)
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this really the way to test a plugin?

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 will run all tests (including foreman core ones).
For my plugin, I test with rake test:foreman_rh_cloud.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's exactly my point, but I think currently this is how we test in Jenkins since I copied the builder.

Copy link
Member

Choose a reason for hiding this comment

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

So maybe it makes sense to make core tests at least optional? So I will be able to decide for my plugin if I want to run core tests too. For smaller plugins that do not modify core objects it should be OK to run only plugin related tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is still a draft for now, so this line was partly a TODO so I wouldn't forget.

@ehelms
Copy link
Member

ehelms commented Mar 1, 2021

We have moved the Jenkins job definitions over to https://github.com/theforeman/jenkins-jobs -- please re-open your PR against this new repository.

@ekohl
Copy link
Member Author

ekohl commented Mar 3, 2021

Replaced by theforeman/jenkins-jobs#11

@ekohl ekohl closed this Mar 3, 2021
@ekohl ekohl deleted the plugin-refactor branch March 3, 2021 13:11
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.

3 participants