fix: downgrade npm-groovy-lint to 15.0.0
Some checks failed
Build and Test / Set build metadata (push) Has been cancelled
Build and Test / Build test suite matrix (push) Has been cancelled
Build and Test / preview-release-notes (push) Has been cancelled
Lint commit / commitlint (push) Has been cancelled
Build and Test / Build and Test (push) Has been cancelled
Build and Test / Test the Super-linter GitHub Action (push) Has been cancelled
Build and Test / Run test cases (push) Has been cancelled
Build and Test / Check if all the tests passed (push) Has been cancelled

Fix #6371

npm-groovy-lint > 15.0.0 is impacted by:

- https://github.com/nvuillam/npm-groovy-lint/issues/428
- https://github.com/nvuillam/npm-groovy-lint/issues/422
This commit is contained in:
Marco Ferrari 2024-11-19 18:24:26 +00:00
parent b2d0953bfc
commit d4f49ef096
3 changed files with 19 additions and 6 deletions

11
dependencies/package-lock.json generated vendored
View file

@ -34,7 +34,7 @@
"markdownlint-cli": "^0.42.0",
"next": "^15.0.3",
"next-pwa": "^5.6.0",
"npm-groovy-lint": "^15.0.2",
"npm-groovy-lint": "^15.0.0",
"postcss-less": "^6.0.0",
"prettier": "^3.3.3",
"prettyjson": "^1.2.5",
@ -17205,9 +17205,10 @@
}
},
"node_modules/npm-groovy-lint": {
"version": "15.0.2",
"resolved": "https://registry.npmjs.org/npm-groovy-lint/-/npm-groovy-lint-15.0.2.tgz",
"integrity": "sha512-1HvEdy0eKIHOx/TIBgehQGEA+UObCUFsmHJ45LRxCkiMUTMMYEDXlTPV6u78UMNCsFqcGzeMUPfi4tXAxss2Tg==",
"version": "15.0.0",
"resolved": "https://registry.npmjs.org/npm-groovy-lint/-/npm-groovy-lint-15.0.0.tgz",
"integrity": "sha512-MSVHrSK2bVQnQUSIiyXp8Am33E6gt3QUBXm8Z+AA4dToLqpU0+46VCiIcOCTSiKmz9Rd7DoGgFrd5eBEO4qBsg==",
"license": "MIT",
"dependencies": {
"ansi-colors": "^4.1.1",
"axios": "^1.6.2",
@ -17220,7 +17221,7 @@
"fs-extra": "^11.0.0",
"glob": "^11.0.0",
"import-fresh": "^3.2.1",
"java-caller": "^4.1.1",
"java-caller": "^4.0.0",
"js-yaml": "^4.1.0",
"node-sarif-builder": "^3.0.0",
"optionator": "^0.9.0",

View file

@ -29,7 +29,7 @@
"markdownlint-cli": "^0.42.0",
"next": "^15.0.3",
"next-pwa": "^5.6.0",
"npm-groovy-lint": "^15.0.2",
"npm-groovy-lint": "^15.0.0",
"postcss-less": "^6.0.0",
"prettier": "^3.3.3",
"prettyjson": "^1.2.5",

View file

@ -0,0 +1,12 @@
import groovy.text.*
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
@Library('somelib')
import com.mycorp.pipeline.somelib.Helper
int useSomeLib(Helper helper) {
helper.prepare()
return helper.count()
}
echo useSomeLib(new Helper('some text'))