Skip to content
This repository was archived by the owner on May 14, 2022. It is now read-only.

Add Jenkinsfile to the repo#7

Merged
oleg-nenashev merged 4 commits into
jenkinsci:masterfrom
oleg-nenashev:jenkinsfile
Mar 2, 2017
Merged

Add Jenkinsfile to the repo#7
oleg-nenashev merged 4 commits into
jenkinsci:masterfrom
oleg-nenashev:jenkinsfile

Conversation

@oleg-nenashev
Copy link
Copy Markdown
Member

This change adds Jenkinsfile for jenkins.io. I have not tested it (not sure how to reliably do it).

CC @rtyler and @reviewbybees

Comment thread Jenkinsfile Outdated

post {
always {
junit '*/target/surefire-reports/*.xml'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I would like to also publish FindBugs, but seems the publisher still does not support symbols

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

step

@ghost
Copy link
Copy Markdown

ghost commented Feb 27, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Copy Markdown
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Why not simply

buildPlugin()

?

Comment thread Jenkinsfile Outdated
// Make sure we have GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL set due to machine weirdness.
environment {
GIT_COMMITTER_NAME = "jenkins"
GIT_COMMITTER_EMAIL = "jenkins@jenkins.io"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What here is committing to Git?

Comment thread Jenkinsfile Outdated

post {
always {
junit '*/target/surefire-reports/*.xml'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

step

@oleg-nenashev
Copy link
Copy Markdown
Member Author

oleg-nenashev commented Feb 27, 2017 via email

@oleg-nenashev
Copy link
Copy Markdown
Member Author

@reviewbybees So I have created buildModule() in jenkins-infra/pipeline-library#6 . Now this PR is de-facto a one-liner

Comment thread Jenkinsfile Outdated
@@ -0,0 +1,3 @@

// Builds a module using https://github.com/jenkins-infra/pipeline-library
buildModule(platforms: ['linux'], allowEmptyTestResults: true)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would be more comfortable deleting

<disabledTestInjection>true</disabledTestInjection>

Comment thread Jenkinsfile
@@ -0,0 +1,3 @@

// Builds a module using https://github.com/jenkins-infra/pipeline-library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you can actually test the upstream PR prior to it being merged, using something like

@Library('github.com/oleg-nenashev/pipeline-library@7b106252928c000a81734f64eaa84f822a680134') _

Of course this only matters if organization scanning is fixed while both PRs are open.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For local testing I use jenkinsci/filesystem_scm-plugin#2.
For upstream PR testing I would like to get it hosted first :)

@oleg-nenashev
Copy link
Copy Markdown
Member Author

@jglick migrated to buildPlugin() with the stock version of the lib

Comment thread pom.xml
<extensions>true</extensions>
<configuration>
<disabledTestInjection>true</disabledTestInjection>
<disabledTestInjection>false</disabledTestInjection>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or just simply delete the whole plugin section, since you are not overriding anything any more.

@oleg-nenashev
Copy link
Copy Markdown
Member Author

@reviewbybees done.
Merging as a maintainer

@oleg-nenashev oleg-nenashev merged commit c28d0ad into jenkinsci:master Mar 2, 2017
@oleg-nenashev oleg-nenashev deleted the jenkinsfile branch March 2, 2017 15:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants