Skip to content

Commit

Permalink
Prepare for v0.11.3 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
headcr4sh committed Mar 6, 2020
1 parent dfda473 commit 8da055b
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.ci/
/.vscode/
/.editorconfig
/.travis.yml
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ trim_trailing_whitespace = true
indent_style = tab
indent_size = 8

[*.{json,xml,yml}]
[*.{json,xml,yaml,yml}]
indent_style = space
indent_size = 2

[*.properties]
charset = latin1

[*.awk]
end_of_line = lf

[*.sh]
end_of_line = lf

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.awk eol=lf
*.sh eol=lf
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Febin Rejoe <[email protected]> Muthiah
Fernando Torres <[email protected]> <[email protected]>
Benjamin P. Jung <[email protected]> Benjmain P. Jung
Benjamin P. Jung <[email protected]> <[email protected]>
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Pontus Arfwedson &lt;[email protected]&gt;
* Rekha Mittal &lt;[email protected]&gt;
* Rune Engseth &lt;[email protected]&gt;
* Samed Ozdemir &lt;[email protected]&gt;
* Ye Yang &lt;[email protected]&gt;

## Third party components
Expand Down
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.11.3] - 2020-03-06

Thanks to [Samed Ozdemir](https://github.com/xsorifc28) who provided a patch to
enhance the functionality of this resource for this release.

### Added

- The parameters `branch_name_file` and `branch_target_file` have been added to
allow for more sophisticated integration options with SonarQube's branch
management feature. ([#52](https://github.com/cathive/concourse-sonarqube-resource/issues/52))

### Updated

- The bundled TypeScript version has been updated to v3.8.3.

### Fixed

- The environment variable `NODE_PATH` is now set correctly, which should fix
issues with the sonar-typescript-plugin. ([#51](https://github.com/cathive/concourse-sonarqube-resource/issues/51))

## [0.11.2] - 2020-02-05

### Fixed

- JAVA_HOME was not correctly linked and rendered the `cli` variant of the sonar-scanner
unusable. [#50](https://github.com/cathive/concourse-sonarqube-resource/issues/50)
unusable. ([#50](https://github.com/cathive/concourse-sonarqube-resource/issues/50))

## [0.11.1] - 2020-01-24 [YANKED]

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ENV NODE_PATH="/usr/local/lib/node_modules"
ENV PATH="/usr/local/bin:/usr/bin:/bin"

LABEL maintainer="Benjamin P. Jung <[email protected]>" \
version="0.11.2" \
version="0.11.3" \
maven.version="{MAVEN_VERSION}" \
sonar-scanner.cli.version="${SONAR_SCANNER_CLI_VERSION}" \
sonar-scanner.maven-plugin.version="${SONAR_SCANNER_MAVEN_PLUGIN_VERSION}" \
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,21 @@ quality gate associated with a project are not met.

* `branch_name`: Name of the branch. Overrides `autodetect_branch_name` if it has been set.

* `branch_name_file`: File to be used to read the branch name.
When this option has been specified, it has precedence over the `branch_name` parameter.

* `branch_target`: Name of the branch where you intend to merge your short-lived branch at the end of its life.
If left blank, this defaults to the master branch. It can also be used while initializing a long-lived
branch to sync the issues from a branch other than the Main Branch.
(See [Branch Plugin documentation](https://docs.sonarqube.org/display/PLUG/Branch+Plugin) for further
details)

* `branch_target_file`: File to be used to read the branch target.
When this option has been specified, it has precedence over the `branch_target` parameter.

* `decorate_pr`: If set to `true` it will try to fetch the pull request id and the head branch name from
the pull request resource. It works for `telia-oss/github-pr-resource` and `jtarchie/github-pullrequest-resource`. It will enable `sonar.pullrequest.key` and `sonar.pullrequest.branch` flags when performing your analysis.

>_In order to use this feature you must be using `SonarCloud` or `SonarQube Developer` edition._

* `sources`: A list of paths to directories containing source files.
Expand Down Expand Up @@ -144,7 +150,7 @@ the SonarQube Web API:
* `ignore_warns`: *array* A list of metric keys for `WARN` metric to ignore while quality_gate checking.
* `ignore_errors`: *array* A list of metric keys for `ERROR` metric to ignore while quality_gate checking.

Note: for `ignore_warns`/`ignore_errors`, possible value could be found through
Note: for `ignore_warns`/`ignore_errors`, possible value could be found through
* `https://<your-sonar_host>/quality_gates/show/<quality_gate_id>`
* `https://<your-sonar_host>/api/qualitygates/show?id=<quality_gate_id>`

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sonar.organization = cathive
sonar.projectKey = concourse-sonarqube-resource
sonar.projectName = Concourse CI SonarQube Resource
sonar.projectDescription = A resource for Concourse CI that performs SonarQube analyses and reports the state of a project`s quality goals.
sonar.projectVersion = 0.11.2
sonar.projectVersion = 0.11.3
sonar.links.homepage = https://github.com/cathive/concourse-sonarqube-resource
sonar.links.issue = https://github.com/cathive/concourse-sonarqube-resource/issues
sonar.links.ci = https://ci.cathive.com/
Expand Down
6 changes: 4 additions & 2 deletions structure-test/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ schemaVersion: '2.0.0'
metadataTest:
env:
- key: 'JAVA_HOME'
value: '/usr/java/openjdk-13'
value: '/usr/java/openjdk-11'
- key: 'M2_HOME'
value: '/opt/apache-maven'
- key: 'NODE_PATH'
value: '/usr/local/lib/node_modules'

fileExistenceTests:
- name: 'Java Runtime must be installed'
Expand Down Expand Up @@ -36,7 +38,7 @@ fileExistenceTests:
path: '/opt/sonar-scanner/jre/bin/java'
shouldExist: true
isExecutableBy: 'owner'


commandTests:
- name: '"java" executable works'
Expand Down

0 comments on commit 8da055b

Please sign in to comment.