violation-comments-to-bitbucket-server-command-line 1.32.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-javadoc.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-javadoc.jar.asc +11 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-sources.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-sources.jar.asc +11 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-tests.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0-tests.jar.asc +11 -0
- package/{jdeploy-bundle/violation-comments-to-bitbucket-server-command-line-1.32.jar → build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0.jar} +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-1.38.0.jar.asc +11 -0
- package/index.js +2 -0
- package/package.json +15 -44
- package/CHANGELOG.md +0 -285
- package/jdeploy-bundle/jdeploy.js +0 -165
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Violation Comments To Bitbucket Server Command Line
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/tomasbjerre/violation-comments-to-bitbucket-server-command-line)
|
|
4
|
-
[ ](https://bintray.com/tomasbjerre/tomasbjerre/se.bjurr.violations%3Aviolation-comments-to-bitbucket-server-command-line/_latestVersion)
|
|
5
3
|
[ ](https://www.npmjs.com/package/violation-comments-to-bitbucket-server-command-line)
|
|
4
|
+
[](https://maven-badges.herokuapp.com/maven-central/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line)
|
|
6
5
|
|
|
7
6
|
Report static code analysis to Bitbucket Server. It uses the [Violations Lib](https://github.com/tomasbjerre/violations-lib).
|
|
8
7
|
|
|
@@ -56,6 +55,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
56
55
|
| [_CPPLint_](https://github.com/theandrewdavis/cpplint) | `CPPLINT` |
|
|
57
56
|
| [_CSSLint_](https://github.com/CSSLint/csslint) | `CSSLINT` |
|
|
58
57
|
| [_Checkstyle_](http://checkstyle.sourceforge.net/) | `CHECKSTYLE` |
|
|
58
|
+
| [_CloudFormation Linter_](https://github.com/aws-cloudformation/cfn-lint) | `JUNIT` | `cfn-lint . -f junit --output-file report-junit.xml`
|
|
59
59
|
| [_CodeClimate_](https://codeclimate.com/) | `CODECLIMATE` |
|
|
60
60
|
| [_CodeNarc_](http://codenarc.sourceforge.net/) | `CODENARC` |
|
|
61
61
|
| [_Detekt_](https://github.com/arturbosch/detekt) | `CHECKSTYLE` | With `--output-format xml`.
|
|
@@ -76,6 +76,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
76
76
|
| [_HadoLint_](https://github.com/hadolint/hadolint/) | `CHECKSTYLE` | With `-f checkstyle`
|
|
77
77
|
| [_IAR_](https://www.iar.com/iar-embedded-workbench/) | `IAR` | With `--no_wrap_diagnostics`
|
|
78
78
|
| [_Infer_](http://fbinfer.com/) | `PMD` | Facebook Infer. With `--pmd-xml`.
|
|
79
|
+
| [_JACOCO_](https://www.jacoco.org/) | `JACOCO` |
|
|
79
80
|
| [_JCReport_](https://github.com/jCoderZ/fawkez/wiki/JcReport) | `JCREPORT` |
|
|
80
81
|
| [_JSHint_](http://jshint.com/) | `JSLINT` | With `--reporter=jslint` or the CHECKSTYLE parser with `--reporter=checkstyle`
|
|
81
82
|
| [_JUnit_](https://junit.org/junit4/) | `JUNIT` | It only contains the failures.
|
|
@@ -84,6 +85,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
84
85
|
| [_KotlinGradle_](https://github.com/JetBrains/kotlin) | `KOTLINGRADLE` | Output from Kotlin Gradle Plugin.
|
|
85
86
|
| [_KotlinMaven_](https://github.com/JetBrains/kotlin) | `KOTLINMAVEN` | Output from Kotlin Maven Plugin.
|
|
86
87
|
| [_Lint_]() | `LINT` | A common XML format, used by different linters.
|
|
88
|
+
| [_MSBuildLog_](https://docs.microsoft.com/en-us/visualstudio/msbuild/obtaining-build-logs-with-msbuild?view=vs-2019) | `MSBULDLOG` | With `-fileLogger` use `.*msbuild\\.log$` as pattern or `-fl -flp:logfile=MyProjectOutput.log;verbosity=diagnostic` for a custom output filename
|
|
87
89
|
| [_MSCpp_](https://visualstudio.microsoft.com/vs/features/cplusplus/) | `MSCPP` |
|
|
88
90
|
| [_Mccabe_](https://pypi.python.org/pypi/mccabe) | `FLAKE8` |
|
|
89
91
|
| [_MyPy_](https://pypi.python.org/pypi/mypy-lang) | `MYPY` |
|
|
@@ -102,6 +104,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
102
104
|
| [_PyLint_](https://www.pylint.org/) | `PYLINT` | With `pylint --output-format=parseable`.
|
|
103
105
|
| [_ReSharper_](https://www.jetbrains.com/resharper/) | `RESHARPER` |
|
|
104
106
|
| [_RubyCop_](http://rubocop.readthedocs.io/en/latest/formatters/) | `CLANG` | With `rubycop -f clang file.rb`
|
|
107
|
+
| [_SARIF_](https://github.com/oasis-tcs/sarif-spec) | `SARIF` |
|
|
105
108
|
| [_SbtScalac_](http://www.scala-sbt.org/) | `SBTSCALAC` |
|
|
106
109
|
| [_Scalastyle_](http://www.scalastyle.org/) | `CHECKSTYLE` |
|
|
107
110
|
| [_Simian_](http://www.harukizaemon.com/simian/) | `SIMIAN` |
|
|
@@ -110,11 +113,14 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
110
113
|
| [_StyleCop_](https://stylecop.codeplex.com/) | `STYLECOP` |
|
|
111
114
|
| [_SwiftLint_](https://github.com/realm/SwiftLint) | `CHECKSTYLE` | With `--reporter checkstyle`.
|
|
112
115
|
| [_TSLint_](https://palantir.github.io/tslint/usage/cli/) | `CHECKSTYLE` | With `-t checkstyle`
|
|
116
|
+
| [_Valgrind_](https://valgrind.org/) | `VALGRIND` | With `--xml=yes`.
|
|
113
117
|
| [_XMLLint_](http://xmlsoft.org/xmllint.html) | `XMLLINT` |
|
|
114
118
|
| [_XUnit_](https://xunit.net/) | `XUNIT` | It only contains the failures.
|
|
115
119
|
| [_YAMLLint_](https://yamllint.readthedocs.io/en/stable/index.html) | `YAMLLINT` | With `-f parsable`
|
|
116
120
|
| [_ZPTLint_](https://pypi.python.org/pypi/zptlint) | `ZPTLINT` |
|
|
117
121
|
|
|
122
|
+
47 parsers and 73 reporters.
|
|
123
|
+
|
|
118
124
|
Missing a format? Open an issue [here](https://github.com/tomasbjerre/violations-lib/issues)!
|
|
119
125
|
|
|
120
126
|
# Usage
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhr4XVAAoJEJxRmnfYMAu7OyAH/i2SkHfhHiNXk9RNnJrbuyHe
|
|
5
|
+
/C5EsXSZIt7o/+EUFeI2zLLzjous/atNonHuq3maloQhm7yGOpwk38M4ezeH5Ixh
|
|
6
|
+
V2jfNN4arATDJ39N93QJ7skUit+jN3SoQqMHFmfvAlj4NQvHWxj2ujo2L588eBSB
|
|
7
|
+
4SiKg0YXtHxNfAuNOXn1Qkv4mniy4j4SvKX4614NJc8Gce7SvoxZtu3bdQPBVbTU
|
|
8
|
+
0yMNDjm9lTfXHePUpQa7A+BpyRAhT8iOVFiiPrBvEsfcj2KSQ25mQ52SHvnSlKWk
|
|
9
|
+
Ke8ao6BUqacggIRIuGUukrxsPueML8KpSOgUDFky1pCDgeTuVU7JpT5ZECZwPNk=
|
|
10
|
+
=P4Hc
|
|
11
|
+
-----END PGP SIGNATURE-----
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhr4XVAAoJEJxRmnfYMAu7edwH/280DOwZAxX8PSlNd6NhgEl7
|
|
5
|
+
mesG/0+EMDfeDHygiejfz2JY2a9jdJn5NjURWry9TXTyAC/wuh9bhKMORx+p/yra
|
|
6
|
+
ZvHiI4z1m+xTw5QrYJ4SVZMq8kQySz7ZtEou8FvWj3XvhGjKQL89GNpy3X63uNjo
|
|
7
|
+
BjU6CH9IK5HiwuiH7mn4TwK0ZdeHKbh/gCDXSJ3qWZnlgu0sEEebemay7EMD2I/w
|
|
8
|
+
m7+ltdyvuynj8N5fmqXCUiNx6nprbBfeWyAzK4+HM9gmlLF41wyQszdnMBYTgN/n
|
|
9
|
+
ET8CEzhsT9YdWX9lXOuQFh9EkTNG758kP3+mXz4tAOcNk+l8N97P84mW/QIoRkM=
|
|
10
|
+
=ZVRw
|
|
11
|
+
-----END PGP SIGNATURE-----
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhr4XVAAoJEJxRmnfYMAu7stYH/ipXYGkpqFtVUu/PsWKGhi21
|
|
5
|
+
lf03/S5xtoKdJf3U0Okc+6oCIwU/eOLC+/17R7vIVdhzNJo8c7qRVwBdOGlmcZMn
|
|
6
|
+
MFRui32v7FwYHQ1tQFwPTWKOnG5obAoX8uXJeA7TG+d+yECWYmaQ41sZKAtTnJUL
|
|
7
|
+
Iyy8VD7ZEmZPuHvOZZ+X62BvSBexcy3nHfEMln1+S+3v2oiFG5gUGmD977sy8HO/
|
|
8
|
+
BQJNBQe/N1ZgMlLL5Z1ox4p7y8/AUBNQ6N3KuOLyui3NYG5pWRjz7uYefmnga1F+
|
|
9
|
+
/dIq7KdYhim3m7wQcmOFWkBExsQrttdPymbS5L5XmFSfAeNmt2+CdPbzOKXl2bs=
|
|
10
|
+
=+ifX
|
|
11
|
+
-----END PGP SIGNATURE-----
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhr4XVAAoJEJxRmnfYMAu7yqgH/0jrm4Qpe1KjxOelHhDAd9sj
|
|
5
|
+
i0TeF6HNe/1FyxtoCPtetoxSk4En1D6BggeA1CI5XTIGU+BmvCloyyhjdG+xRaQF
|
|
6
|
+
GZzllYWyajCVVZAmp+nzAAeWPQ9i3BhpRNrKWhmZG4cSi0ly2BHbu3pcU9bj18EY
|
|
7
|
+
h+9duUmh7/cwv2Uv8EYkAXFQnC99CqOSj64N1Jje61O1Cf1NAFtjQRQDotMpmxPs
|
|
8
|
+
KrWx6IOVqScD4yVzBaYOmT35VGIYk25Bebt4c/leaIynMwZpvdZnmdvJ8glVc9vP
|
|
9
|
+
Eo2sNsi20VqTEms6BCrRBPV4ZjvCMU8On/Ljd41c+aA5bDMA1+rBT1J7M3BTgPQ=
|
|
10
|
+
=KSvO
|
|
11
|
+
-----END PGP SIGNATURE-----
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,46 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"violation-comments-to-bitbucket-server-command-line"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"Pep8",
|
|
18
|
-
"Mccabe",
|
|
19
|
-
"PyFlakes",
|
|
20
|
-
"JSHint",
|
|
21
|
-
"Lint",
|
|
22
|
-
"PerlCritic",
|
|
23
|
-
"PMD",
|
|
24
|
-
"ReSharper",
|
|
25
|
-
"XMLLint"
|
|
26
|
-
],
|
|
27
|
-
"homepage": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
|
|
28
|
-
"repository": "git@github.com:tomasbjerre/violation-comments-to-bitbucket-server-command-line.git",
|
|
29
|
-
"main": "index.js",
|
|
30
|
-
"preferGlobal": true,
|
|
31
|
-
"version": "1.32.0",
|
|
32
|
-
"jdeploy": {
|
|
33
|
-
"jar": "build/libs/violation-comments-to-bitbucket-server-command-line-1.32.jar"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"shelljs": "^0.7.5"
|
|
37
|
-
},
|
|
38
|
-
"license": "Apache 2",
|
|
39
|
-
"name": "violation-comments-to-bitbucket-server-command-line",
|
|
40
|
-
"files": [
|
|
41
|
-
"jdeploy-bundle"
|
|
42
|
-
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
2
|
+
"version": "1.38.0",
|
|
3
|
+
"name": "violation-comments-to-bitbucket-server-command-line",
|
|
4
|
+
"homepage": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
|
|
5
|
+
"repository": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
|
|
6
|
+
"author": "Tomas Bjerre",
|
|
7
|
+
"description": "'Report static code analysis to Bitbucket Server.'",
|
|
8
|
+
"runnable-jar-regexp": ".*build/libs/.*\\d+\\.\\d+\\.\\d+\\.jar$",
|
|
9
|
+
"files": [
|
|
10
|
+
"build/libs"
|
|
11
|
+
],
|
|
12
|
+
"bin": "./index.js",
|
|
13
|
+
"license": "Apache 2",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"npm-java-runner": "0.0.17"
|
|
16
|
+
}
|
|
45
17
|
}
|
|
46
|
-
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Violation comments to bitbucket server command line changelog
|
|
3
|
-
|
|
4
|
-
Changelog of Violation comments to bitbucket server command line.
|
|
5
|
-
|
|
6
|
-
## 1.31
|
|
7
|
-
### GitHub #72
|
|
8
|
-
|
|
9
|
-
**Making isIgnored public jenkinsci/violation-comments-to-stash-plugin**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[4ec4adec5549b62](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4ec4adec5549b62) Tomas Bjerre *2020-12-06 10:26:00*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 1.30
|
|
16
|
-
### GitHub #101
|
|
17
|
-
|
|
18
|
-
**Rewriting PiTestParser parser**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[2b7d2ef9db922b5](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/2b7d2ef9db922b5) Tomas Bjerre *2020-09-27 16:27:23*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## 1.29
|
|
25
|
-
### No issue
|
|
26
|
-
|
|
27
|
-
**Rewriting parsers**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
[e9f0e4a673244ea](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/e9f0e4a673244ea) Tomas Bjerre *2020-09-27 15:47:39*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## 1.28
|
|
34
|
-
### No issue
|
|
35
|
-
|
|
36
|
-
**Supporting jest-junit**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
[3465ff01e666ef1](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/3465ff01e666ef1) Tomas Bjerre *2020-09-25 18:55:32*
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## 1.27
|
|
43
|
-
### No issue
|
|
44
|
-
|
|
45
|
-
**Allow Checkstyle reports with no line**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[8cb0436947300b4](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/8cb0436947300b4) Tomas Bjerre *2020-09-23 16:55:26*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## 1.23
|
|
52
|
-
### No issue
|
|
53
|
-
|
|
54
|
-
**Generic parser**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[cad8315bd87db22](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/cad8315bd87db22) Tomas Bjerre *2020-09-14 16:15:56*
|
|
58
|
-
|
|
59
|
-
**Travis with openjdk8**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
[4781eb9c078e998](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4781eb9c078e998) Tomas Bjerre *2020-09-05 07:02:12*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## 1.22
|
|
66
|
-
### No issue
|
|
67
|
-
|
|
68
|
-
**adjusting message of junit parser**
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
[a154720fa85d675](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/a154720fa85d675) Tomas Bjerre *2020-09-05 06:39:11*
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
## 1.21
|
|
75
|
-
### No issue
|
|
76
|
-
|
|
77
|
-
**Support JUNI reports without message**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
[cf59d1736f7cdbe](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/cf59d1736f7cdbe) Tomas Bjerre *2020-09-04 15:45:32*
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
## 1.20
|
|
84
|
-
### GitHub #14
|
|
85
|
-
|
|
86
|
-
**VIOLATIONS_KEYSTORE_PATH tomasbjerre/violation-comments-to-bitbucket-server-lib**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
[190417259002408](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/190417259002408) Tomas Bjerre *2020-09-01 14:32:41*
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## 1.19
|
|
93
|
-
### No issue
|
|
94
|
-
|
|
95
|
-
**doc**
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
[ba1cb441a9a9822](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/ba1cb441a9a9822) Tomas Bjerre *2020-08-29 14:07:34*
|
|
99
|
-
|
|
100
|
-
**update lib version**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
[0c6c6155a75dd17](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/0c6c6155a75dd17) Anirudh Bagri *2020-08-29 13:57:34*
|
|
104
|
-
|
|
105
|
-
**add support for certifiacte authentication using latest violation lib library**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
[c673d847ac7c216](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/c673d847ac7c216) Anirudh Bagri *2020-08-29 13:44:22*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## 1.18
|
|
112
|
-
### No issue
|
|
113
|
-
|
|
114
|
-
**New: custom logging in violations-lib**
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
[f4085f17621a40e](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/f4085f17621a40e) Tomas Bjerre *2020-07-05 11:52:46*
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
## 1.17
|
|
121
|
-
### No issue
|
|
122
|
-
|
|
123
|
-
**New: custom logging in violations-lib**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
[0395d355936efe6](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/0395d355936efe6) Tomas Bjerre *2020-07-05 11:23:37*
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
## 1.16
|
|
130
|
-
### No issue
|
|
131
|
-
|
|
132
|
-
**New: logging**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
[9a2171ef165b926](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/9a2171ef165b926) Tomas Bjerre *2020-07-04 06:19:04*
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
## 1.15
|
|
139
|
-
### No issue
|
|
140
|
-
|
|
141
|
-
**Fix: less logging**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
[753e62ca7d50213](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/753e62ca7d50213) Tomas Bjerre *2020-07-03 12:57:21*
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
## 1.14
|
|
148
|
-
### No issue
|
|
149
|
-
|
|
150
|
-
**Fix: avoiding trying to delete twice causing NPE in server log**
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
[3fecba570f8e926](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/3fecba570f8e926) Tomas Bjerre *2020-07-02 17:29:46*
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
## 1.13
|
|
157
|
-
### GitHub #69
|
|
158
|
-
|
|
159
|
-
**Removing tabs jenkinsci/violation-comments-to-stash-plugin**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
[969f6b7d051498c](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/969f6b7d051498c) Tomas Bjerre *2020-03-10 15:32:51*
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
## 1.12
|
|
166
|
-
### GitHub #69
|
|
167
|
-
|
|
168
|
-
**More logging jenkinsci/violation-comments-to-stash-plugin**
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
[57fbefe52b40bf8](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/57fbefe52b40bf8) Tomas Bjerre *2020-03-09 18:08:32*
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## 1.11
|
|
175
|
-
### GitHub #84
|
|
176
|
-
|
|
177
|
-
**XUnit tomasbjerre/violations-lib**
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
[fafb026775b1a11](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/fafb026775b1a11) Tomas Bjerre *2020-03-03 16:53:49*
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
## 1.10
|
|
184
|
-
### GitHub #82
|
|
185
|
-
|
|
186
|
-
**CPPCheckParser with auto closed <error/> tags tomasbjerre/violations-lib**
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
[63dd98c3a8fc502](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/63dd98c3a8fc502) Tomas Bjerre *2020-02-03 16:23:34*
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
## 1.9
|
|
193
|
-
### GitHub #80
|
|
194
|
-
|
|
195
|
-
**Add support for sonar issue report formats >= v7.5 tomasbjerre/violations-lib**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
[d1d45d76d1b1731](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/d1d45d76d1b1731) Tomas Bjerre *2020-01-03 07:17:05*
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
## 1.8
|
|
202
|
-
### No issue
|
|
203
|
-
|
|
204
|
-
**doc**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
[f628fad79aa7e8a](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/f628fad79aa7e8a) Tomas Bjerre *2020-12-31 06:48:03*
|
|
208
|
-
|
|
209
|
-
**Add missing argument to withArguments function**
|
|
210
|
-
|
|
211
|
-
* Fix for https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/issues/1
|
|
212
|
-
|
|
213
|
-
[ceb66b06be0ada0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/ceb66b06be0ada0) Zakey Faieq *2020-12-30 21:08:33*
|
|
214
|
-
|
|
215
|
-
**doc**
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
[b39f06d346771f8](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/b39f06d346771f8) Tomas Bjerre *2019-10-09 17:01:49*
|
|
219
|
-
|
|
220
|
-
**Create FUNDING.yml**
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
[568dc05580dafc4](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/568dc05580dafc4) Tomas Bjerre *2019-09-28 07:03:16*
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
## 1.7
|
|
227
|
-
### No issue
|
|
228
|
-
|
|
229
|
-
**Changing name of JSHINT parser to JSLINT**
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
[937eca592cca31b](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/937eca592cca31b) Tomas Bjerre *2019-08-03 11:19:19*
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
## 1.6
|
|
236
|
-
### No issue
|
|
237
|
-
|
|
238
|
-
**commentOnlyChangedFiles**
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
[5a75d6f8c5082bc](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/5a75d6f8c5082bc) Tomas Bjerre *2019-06-16 17:09:54*
|
|
242
|
-
|
|
243
|
-
**changelog**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
[b1d48b0d8a46e2e](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/b1d48b0d8a46e2e) Tomas Bjerre *2019-06-15 19:18:13*
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
## 1.5
|
|
250
|
-
### No issue
|
|
251
|
-
|
|
252
|
-
**Artity 4 on -v**
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
[4652113b9962bff](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4652113b9962bff) Tomas Bjerre *2019-06-15 19:07:20*
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
## 1.4
|
|
259
|
-
### No issue
|
|
260
|
-
|
|
261
|
-
**doc**
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
[237be4f40c4a140](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/237be4f40c4a140) Tomas Bjerre *2019-06-01 18:52:01*
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
## 1.3
|
|
268
|
-
### No issue
|
|
269
|
-
|
|
270
|
-
**doc**
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
[0f6427fde1a44b1](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/0f6427fde1a44b1) Tomas Bjerre *2019-06-01 17:58:11*
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
## 1.2
|
|
277
|
-
### No issue
|
|
278
|
-
|
|
279
|
-
**doc**
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
[6aa34bd54369ceb](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/6aa34bd54369ceb) Tomas Bjerre *2019-06-01 15:34:07*
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
var fail = reason => {
|
|
3
|
-
console.error(reason);
|
|
4
|
-
process.exit(1);
|
|
5
|
-
};
|
|
6
|
-
function getJavaVersion() {
|
|
7
|
-
try {
|
|
8
|
-
var javaVersionProc = exec('java -version', {silent:true});
|
|
9
|
-
if (javaVersionProc.code !== 0) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
var stdout = javaVersionProc.stderr;
|
|
13
|
-
//console.log(javaVersionProc);
|
|
14
|
-
//console.log("stdout is "+stdout);
|
|
15
|
-
var regexp = /version "(.*?)"/;
|
|
16
|
-
var match = regexp.exec(stdout);
|
|
17
|
-
var parts = match[1].split('.');
|
|
18
|
-
var join = '.';
|
|
19
|
-
var versionStr = '';
|
|
20
|
-
parts.forEach(function(v) {
|
|
21
|
-
versionStr += v;
|
|
22
|
-
if (join !== null) {
|
|
23
|
-
versionStr += join;
|
|
24
|
-
join = null;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
versionStr = versionStr.replace('_', '');
|
|
28
|
-
//console.log("Java version string "+versionStr)
|
|
29
|
-
return parseFloat(versionStr);
|
|
30
|
-
} catch (e) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var getDirectories = dirPath => fs.readdirSync(dirPath).filter(
|
|
36
|
-
file => fs.statSync(path.join(dirPath, file)).isDirectory()
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
function getEmbeddedJavaDir() {
|
|
40
|
-
var _platform = os.platform();
|
|
41
|
-
var _driver;
|
|
42
|
-
switch (_platform) {
|
|
43
|
-
case 'darwin': _platform = 'macosx'; _driver = 'Contents' + path.sep + 'Home' + path.sep + 'bin'; break;
|
|
44
|
-
case 'win32': _platform = 'windows'; _driver = 'bin'; break;
|
|
45
|
-
case 'linux': _driver = 'bin'; break;
|
|
46
|
-
default:
|
|
47
|
-
fail('unsupported platform: ' + _platform);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var jreDir = getJdeploySupportDir() + path.sep + 'node_modules' + path.sep + 'node-jre' + path.sep + 'jre';
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
return jreDir + path.sep + getDirectories(jreDir)[0] + path.sep + _driver;
|
|
54
|
-
} catch (e) {
|
|
55
|
-
//console.log(e);
|
|
56
|
-
return jreDir;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
function getJdeploySupportDir() {
|
|
63
|
-
return os.homedir() + path.sep + ".jdeploy";
|
|
64
|
-
}
|
|
65
|
-
var fs = require('fs');
|
|
66
|
-
var os = require('os');
|
|
67
|
-
var path = require('path');
|
|
68
|
-
var jarName = "violation-comments-to-bitbucket-server-command-line-1.32.jar";
|
|
69
|
-
var mainClass = "{{MAIN_CLASS}}";
|
|
70
|
-
var classPath = "{{CLASSPATH}}";
|
|
71
|
-
var port = "0";
|
|
72
|
-
var warPath = "";
|
|
73
|
-
classPath = classPath.split(':');
|
|
74
|
-
var classPathStr = '';
|
|
75
|
-
var first = true;
|
|
76
|
-
classPath.forEach(function(part) {
|
|
77
|
-
if (!first) classPathStr += path.delimiter;
|
|
78
|
-
first = false;
|
|
79
|
-
classPathStr += __dirname + '/' + part;
|
|
80
|
-
});
|
|
81
|
-
classPath = classPathStr;
|
|
82
|
-
var shell = require("shelljs/global");
|
|
83
|
-
var userArgs = process.argv.slice(2);
|
|
84
|
-
var javaArgs = [];
|
|
85
|
-
javaArgs.push('-Djdeploy.base='+__dirname);
|
|
86
|
-
javaArgs.push('-Djdeploy.port='+port);
|
|
87
|
-
javaArgs.push('-Djdeploy.war.path='+warPath);
|
|
88
|
-
var programArgs = [];
|
|
89
|
-
userArgs.forEach(function(arg) {
|
|
90
|
-
if (arg.startsWith('-D') || arg.startsWith('-X')) {
|
|
91
|
-
javaArgs.push(arg);
|
|
92
|
-
} else {
|
|
93
|
-
programArgs.push(arg);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
var cmd = 'java';
|
|
97
|
-
|
|
98
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
|
|
99
|
-
if (env['JAVA_HOME']) {
|
|
100
|
-
env['PATH'] = env['JAVA_HOME'] + path.sep + 'bin' + path.delimiter + env['PATH'];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var javaVersion = getJavaVersion();
|
|
104
|
-
if (javaVersion === false || javaVersion < 1.8 || env['JDEPLOY_USE_NODE_JRE']) {
|
|
105
|
-
if (!test('-e', getJdeploySupportDir())) {
|
|
106
|
-
mkdir(getJdeploySupportDir());
|
|
107
|
-
}
|
|
108
|
-
var packageJson = getJdeploySupportDir() + path.sep + 'package.json';
|
|
109
|
-
if (!test('-e', packageJson)) {
|
|
110
|
-
fs.writeFileSync(packageJson, JSON.stringify({'name' : 'jdeploy-support', 'version': '1.0.0'}), 'utf8');
|
|
111
|
-
}
|
|
112
|
-
if (!test('-e', getEmbeddedJavaDir())) {
|
|
113
|
-
var currDir = pwd();
|
|
114
|
-
cd(getJdeploySupportDir());
|
|
115
|
-
console.log("Installing/Updating JRE in "+getJdeploySupportDir()+"...");
|
|
116
|
-
exec('npm install node-jre --save');
|
|
117
|
-
cd(currDir);
|
|
118
|
-
}
|
|
119
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
|
|
120
|
-
/*
|
|
121
|
-
// System java either not on path or too old
|
|
122
|
-
if (!test('-e', getEmbeddedJavaDir())) {
|
|
123
|
-
// Could not find embedded java dir
|
|
124
|
-
// We need to install it.
|
|
125
|
-
fail("Could not find embedded java at "+getEmbeddedJavaDir());
|
|
126
|
-
|
|
127
|
-
} else {
|
|
128
|
-
// Found the embedded version. Add it to the PATH
|
|
129
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH']
|
|
130
|
-
console.log("Now java version is "+getJavaVersion());
|
|
131
|
-
fail("Path is now "+env['PATH']);
|
|
132
|
-
}
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
//console.log("Java version is "+getJavaVersion());
|
|
137
|
-
|
|
138
|
-
javaArgs.forEach(function(arg) {
|
|
139
|
-
cmd += ' "'+arg+'"';
|
|
140
|
-
});
|
|
141
|
-
if (jarName !== '{'+'{JAR_NAME}}') {
|
|
142
|
-
cmd += ' -jar "'+__dirname+'/'+jarName+'" ';
|
|
143
|
-
} else {
|
|
144
|
-
cmd += ' -cp "'+classPath+'" '+mainClass+' ';
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
programArgs.forEach(function(arg) {
|
|
148
|
-
cmd += ' "'+arg+'"';
|
|
149
|
-
});
|
|
150
|
-
var child = exec(cmd, {async: true});
|
|
151
|
-
process.stdin.setEncoding('utf8');
|
|
152
|
-
|
|
153
|
-
process.stdin.on('readable', () => {
|
|
154
|
-
var chunk = process.stdin.read();
|
|
155
|
-
if (chunk === null) {
|
|
156
|
-
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
try {
|
|
160
|
-
child.stdin.write(chunk);
|
|
161
|
-
} catch(e){}
|
|
162
|
-
});
|
|
163
|
-
child.on('close', function(code) {
|
|
164
|
-
process.exit(code);
|
|
165
|
-
});
|