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

Update document to explain how to use with Jenkins #2

@KengoTODA

Description

@KengoTODA

In my understanding, we can use following explanation:

Run incremental analysis in Jenkins

If you're using GitHub, use ghprbTargetBranch environment variable generated by GitHub pull request builder plugin:

<profile>
  <id>jenkins-github</id>
  <activation>
    <property>
      <name>env.ghprbTargetBranch</name>
    </property>
  </activation>
  <properties>
    <incremental.spotbugs.target>refs/heads/${env.ghprbTargetBranch}</incremental.spotbugs.target>
  </properties>
</profile>

If you're using GitLab, use gitlabTargetBranch environment variable generated by gitlab-plugin:

<profile>
  <id>jenkins-gitlab</id>
  <activation>
    <property>
      <name>env.gitlabTargetBranch</name>
    </property>
  </activation>
  <properties>
    <incremental.spotbugs.target>refs/heads/${env.gitlabTargetBranch}</incremental.spotbugs.target>
  </properties>
</profile>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions