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

[INFRA-1459] - Initial implementation for the buildJenkinsComponent() step #56

Closed
wants to merge 1 commit into from

Conversation

oleg-nenashev
Copy link
Contributor

This is a minimal implementation of the buildJenkinsComponent() step which is similar to buildPlugin(). Generally we need to align the code and to add support of deployment to essentials.

CC @jglick since he could probably share code for essentials deployment.

https://issues.jenkins-ci.org/browse/INFRA-1459

@reviewbybees @raul-arabaolaza @jglick

junit '**/target/surefire-reports/TEST-*.xml'

if (archive) {
archiveArtifacts artifacts: '**/target/**/*.jar'
Copy link
Contributor

Choose a reason for hiding this comment

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

So I would delete this and replace with conditional Incrementals deployment, as done in buildPlugin.groovy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For things like Remoting it may be useful to publish the artifacts. But yes, maybe it should be opt-in (and configurable by YAML?)

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree on it being opt-in, however, I would ask that to be configurable via step param (and overridable in YAML) so that you can Replay and activate that if you need to debug instead of making a PR to modify the YAML file

timestamps {
stage("Checkout (${stageIdentifier})") {
infra.checkout(repo)
isMaven = fileExists('pom.xml')
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this variable? Seems unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, copy-paste leftovers I'd guess

@raul-arabaolaza raul-arabaolaza self-assigned this May 8, 2018
@raul-arabaolaza raul-arabaolaza self-requested a review May 8, 2018 07:19
@raul-arabaolaza raul-arabaolaza removed their assignment May 8, 2018
@oleg-nenashev oleg-nenashev mentioned this pull request May 9, 2018
@slide
Copy link
Contributor

slide commented May 9, 2018

Does it need to have Jenkins in the name? buildPlugin does not.

timeout(timeoutMin) {
timestamps {
stage("Checkout (${stageIdentifier})") {
infra.checkout(repo)
Copy link
Contributor

Choose a reason for hiding this comment

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

🐛 repo is not defined

* @return nothing
*/
def buildSingle(String stageIdentifier, String nodeLabel, String jdk = 8, boolean archive = false, int timeoutMin = 60) {
node(label) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🐛 Probably you mean nodeLabel


if (archive) {
archiveArtifacts artifacts: '**/target/**/*.jar'
findbugs pattern: '**/target/findbugsXml.xml'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is findbugs guarded by if (archive)?

Is findbugs actually called?

@@ -0,0 +1,66 @@
#!/usr/bin/env groovy
Copy link
Contributor

Choose a reason for hiding this comment

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

cannot comment on the filename, and need to review this more fully some day, but I think this should be named buildComponent.
This would be more consistent with buildPlugin, and like for the plugins where we removed Jenkins because it's contextually obviously Jenkins related, I think this is the same here :).

}

stage("Build (${stageIdentifier})") {
infra.runMaven(["--batch-mode", "clean", "install", "-Dmaven.test.failure.ignore=true"], jdk)
Copy link
Contributor

Choose a reason for hiding this comment

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

add -V (aka --show-versions)

@dduportal
Copy link
Contributor

Hello 👋
This pull request is dangling since 3 years, has the "draft" status since 11 month and has conflicting file.
That's why we are closing it.

Of course, feel free to reopen if you are still working on it. Many thanks for the contribution proposal!

@dduportal dduportal closed this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants