1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-11-28 08:49:44 +02:00
Commit Graph

4936 Commits

Author SHA1 Message Date
Googlom
d1738c124d add some logging to Vault login 2024-10-23 16:47:01 +05:00
Akramdzhon Azamov
7b08d47bcb
Detect script version 9 (#5154)
* detect script v9 as default and detect script v8 as optional for blackduck

* unit test fix

---------

Co-authored-by: Dmitrii Pavlukhin <dmitrii.pavlukhin@sap.com>
2024-10-23 12:09:15 +03:00
Anil Keshav
3ad2628095
feat(vault): not allowing batch token revoke (#4918)
* not allowing batch token revoke

* chaging values to hold variable name

* error message when identifying service token

* refactor

---------

Co-authored-by: Googlom <alimovgb@gmail.com>
2024-10-22 13:50:32 +05:00
Googlom
5c47be3f8f
refactor(vault): Refactor vault package (#5148)
* move to old package

* go mod

* remove old

* refactor done

* Update pkg/vault/oidc.go

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* commit suggestions

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* commit suggestions

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* commit suggestions

---------

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2024-10-22 13:29:34 +05:00
maxcask
4eb1756b54
fix(Central Build): Fix handling legacy stage name for Jenkins pipelines (#5151)
* add handle stageName

* some improvements

---------

Co-authored-by: maxcask <maxcask@gmail.com>
Co-authored-by: Googlom <alimovgb@gmail.com>
Co-authored-by: Googlom <36107508+Googlom@users.noreply.github.com>
2024-10-21 12:23:50 +04:00
Dmitrii Pavlukhin
769067e996
added-option-to-use-global-config-file (#5145) 2024-10-18 17:06:41 +03:00
Adrien
b317b1d1eb
Add debug log for zip file content (#5152)
Co-authored-by: thtri <thanh.hai.trinh@sap.com>
2024-10-17 17:16:14 +02:00
Ivan Nikiforov
34a60daad1
Update documentation for scriptArguments param (#5128)
* Update documentation for scriptArguments param

* Update resources/metadata/shellExecute.yaml

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Update doc with new examples

* Fix typo

---------

Co-authored-by: Ivan Nikiforov <ivan.nikiforov@sap.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2024-10-16 16:09:51 +02:00
Manjunath
e1563e0237
Add additional info to coordinates (#5149) 2024-10-16 14:10:52 +02:00
Ivan Nikiforov
36c555ea61
fix: too long string written to cpe git.commitMessage (#5147)
* fix too long CPE string written to git/commitMessage

* Add debug log

* Fix debug log

* Truncate long git commit message title

* Add tests for truncateString

* Fix test

* Fix tests

* Fix tests

---------

Co-authored-by: Ivan Nikiforov <ivan.nikiforov@sap.com>
2024-10-16 13:45:23 +02:00
Srinikitha Kondreddy
bd8b08b93e
fix: add missing return value for error (#5146) 2024-10-15 14:29:09 +02:00
Anil Keshav
bc8225cffb
feat(build): add buildSettingsInfo for gradleExecuteBuild (#5043)
* creating build settings info from gradle build

* fix linting issue and typo

* fixing step description

* Apply suggestions from code review

Co-authored-by: Tilo Körner <70266685+tiloKo@users.noreply.github.com>

* Address code review comments

* Fix tests

* Fix tests

* Fix tests

* Fix test

---------

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
Co-authored-by: Tilo Körner <70266685+tiloKo@users.noreply.github.com>
Co-authored-by: Vyacheslav Starostin <32613074+vstarostin@users.noreply.github.com>
Co-authored-by: Vyacheslav Starostin <vyacheslav.starostin@sap.com>
2024-10-15 12:14:23 +05:00
Googlom
af05acad58
feat(events): Publish events to GCP PubSub by each step (#5122)
* test

* test

* draft

* generator

* some polishing

* go mod tidy

* fix unit

* fix unit

* fix unit

* fix unit

* fix unit

* resolve review comments

* resolve review comments

* add debug message on successful publish

* refactor to use global vault client

* cleanup

* rename

* clenup

* refactor

* remove token revocation

* handle nil vaultClient and add comments

* feat(events): Publish events (generated part) (#5131)

* add generated

* add generated

* refactor vaultClient usage

* fix unit tests

* fix unit tests

* fix
2024-10-11 14:55:39 +05:00
Simon Dold
8f0948d727
[ABAP] Change pipeline defaults (#5144) 2024-10-11 11:03:32 +02:00
Manjunath
430bb9b719
Simply mvn build command (#5143) 2024-10-10 14:30:48 +02:00
Simon Dold
3225a7ddc0
Adding log download as zip archive (#5121)
* adding LogOutput to clone step

* delete comments

* adding stepName

* change step name

* adding multiple log archive outputs files

* changing file name

* change filename

* change time format

* adding second file for testing

* adding second file

* change structure for PersistReportsAndLinks

* change to pointer

* change pointer

* cleanup

* changing file name

* adding logArchive for pull action

* adding logArchive for checkoutBranch

* refactor zip archive log

* change structure

* adding PersistArchiveLogsForPiperStep function

* adding persist structure to checkout

* adding FileNameStep

* adding unit tests

* correct name

* change whitespace in yaml

* fixing unit tests

* fixing createTag unit test

* fixing unit test

* fixing unit test

* rename ArchiveOutputLogs to LogOutputManager

* refactor pointer structure

* adopt tests to pointer structure

* fixing / error in repo name

* adding log overview also after archive log

* change log output structure

* adding always execution log

* update unit tests

---------

Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2024-10-10 13:42:09 +02:00
Manjunath
b9050b53a5
Handle options properly (#5142) 2024-10-09 12:13:43 +02:00
Srinikitha Kondreddy
129e20d713
feat: add validation for application name (#5123)
* feat: add validation for application name

* improve error message

---------

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2024-10-09 11:34:54 +02:00
Manjunath
41536720c1
Flatten the simple bom (#5141) 2024-10-09 10:17:39 +02:00
Manjunath
20b7eff911
Run makeBOM after aggregateBOM (#5140)
* Run makeBOM after aggregateBOM

* Fix tests
2024-10-08 12:58:48 +02:00
Sarat Krishnan
033a429c49
Fix gcts deploy field anonymize (#5129)
* adding anonymisation for object field

* Further fixes to gcts deploy step

* syntax changes
2024-10-08 10:15:58 +02:00
Manjunath
c991c5b16d
Fix maven build failures due to makeBom goal (#5134) 2024-10-08 09:56:32 +02:00
Rinita Asani
f6231de55b
gctsExecuteABAPQualityCheck type mismatch (#5132)
* Adapting unit test to run for packages with namespace

* Correct type mismatch for object count
2024-10-07 16:08:27 +02:00
Vyacheslav Starostin
60cbddbd47
npm config doesn't fail when workspaces enabled (#5120)
* Add -ws=false -iwr to npm config get registry

* Add -ws=false -iwr to npm config set registry

* Fix test

* Fix test

---------

Co-authored-by: Manjunath <manjunath.mandya.surendrakumar@sap.com>
2024-10-07 11:55:20 +05:00
Oliver Nocon
ef25e31acb
fix(vault): properly consider vault parameters & flags (#5118) 2024-10-04 09:33:53 +02:00
Manjunath
5230c3d454
Include purl info in the event (#5092) 2024-10-02 09:34:34 +02:00
Manjunath
2175d3808b
Update sdk-go/v2 from 2.10.1 to 2.15.2 to fix CVE-2024-28110 (#5050) 2024-10-02 08:52:39 +02:00
Googlom
7eb4495e51
feat(notification): Notify in case of Release failure (#5045)
* Update release-go.yml

* fix lint
2024-09-26 12:21:37 +05:00
Christopher Fenner
a242bca1ae
fix(docs): remove dead links (#5051)
* fix(docs): remove dead links

* Update parameters_test.go
2024-09-20 14:21:33 +02:00
Oliver Feldmann
528a72e567
chore: remove obsolete cloud sdk conversion file (#5036)
The cloud sdk pipeline does not exist anymore.
2024-09-17 13:09:17 +02:00
Srinikitha Kondreddy
90be7e43ad
feat: fail if script is not found in package.json file (#5029)
* feat: fail if script is not found

* fix tests

* Fix integration tests

---------

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2024-09-16 12:32:15 +02:00
Jordi van Liempt
a2bafe2d7f
feat(sonar): Enable trustengine for token retrieval (#5046)
Co-authored-by: jliempt <>
2024-09-16 10:20:40 +02:00
Jordi van Liempt
1b711fd4b1
feat(trustengine): Add new resource reference to parameter docs generation (#5038)
* add trust engine resource reference to parameter docs generation

* test with added resource ref

* remove test resource ref

* use trustengineSecret const

---------

Co-authored-by: jliempt <>
2024-09-16 07:23:33 +00:00
Oliver Feldmann
442d9ffe0c
docs: add unit test tags flag (#4947)
As we use tags for the unit test files, they don't run if one does not provide the tags=unit flag to the test execution command. This change adds the description of how one is to do this when running the tests in a shell, as well as how to add it to the VS Code extension.

Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2024-09-13 14:32:57 +02:00
Tilo Körner
dbeb46223e
CONTRIBUTING.md (#5042)
Updated CONTRIBUTING.md with Code of Conduct and Guidelines for GenAI and general content restructuring
2024-09-13 14:00:11 +02:00
Tilo Körner
1d659c7893
addon.yml may now contain wildCard MAXX (#5039)
* wildCard MAXX in addon.yml for AAKaaS steps
---------

Co-authored-by: Christian Luttenberger <42861202+bluesbrother84@users.noreply.github.com>
2024-09-12 14:44:20 +02:00
Daria Kuznetsova
085a8c003b
fix(codeqlExecuteScan): handle spaces in path to maven settings file (#5037)
* added quotes for mvn settings path

* added logs

* removed logs, added excape symbol for spaces

* set quotes

* removed replacing

* changed quotes

* fixed tests

* removed extra log

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-09-12 10:15:11 +03:00
Jordi van Liempt
af5b738982
feat(trustengine): Integrate Trust Engine into step config resolver (#5032)
* trust engine config and handelling for vault

* add function for resolving trust engine reference

* refactor

* add basic test

* adapt to new trust engine response format

* remove accidental cyclic dependency

* move trust engine hook config

* refactor by separating code from vault

* move trust engine files to own pkg

* adapt to changes of previous commit

* log full error response of trust engine API

* enable getting multiple tokens from trustengine

* remove comment

* incorporate review comments

* go generate

* update unit tests

* apply suggested changes from code review

* fix unit tests

* add unit tests for config pkg

* make changes based on review comments

* make trust engine token available in GeneralConfig and minor fixes

* fix error logic when reading trust engine hook

* make getResponse more flexible and update logging

* update resource reference format

* improve URL handling

* improve logging

* use errors.Wrap() instead of errors.Join()

* update log messages based on suggestions

* remove trustengine resource ref from Sonar step

---------

Co-authored-by: Keshav <anil.keshav@sap.com>
Co-authored-by: jliempt <>
2024-09-11 15:20:28 +02:00
Jordi van Liempt
7e2604ad9e
fix(http): Use configured logger for retryClient (#5040)
Co-authored-by: jliempt <>
2024-09-11 11:39:30 +02:00
Manjunath
ca56fcf962
Updated helm.sh/helm from 13.14.0 to 13.14.2 (#5041) 2024-09-10 13:12:31 +02:00
Johannes Dillmann
34f1057bfa
Copy full project (#5033) 2024-09-06 14:27:17 +02:00
Pavel Busko
72ff2d461b
feat(vault): support complex data types in secrets (#5006)
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
2024-09-05 10:29:19 +02:00
Akramdzhon Azamov
91ae39c9d4
Added pagination logic for retrieving projects from Black Duck server (#5031)
* Added pagination logic for retrieving projects from Black Duck server

* fixed unit tests for getProject in blackduck

* fixed unit tests for getProject in blackduck

* fixed unit tests for getProject in blackduck
2024-09-05 09:36:14 +02:00
Manjunath
645559cbf6
Update aws deps (#5034) 2024-08-30 14:45:57 +02:00
Daniel Mieg
cb45ad1b44
Add possible values and default (#5030) 2024-08-29 10:55:43 +02:00
Manjunath
ff86369e95
Fix security issues reported by Black Duck (#5014) 2024-08-27 13:47:51 +02:00
Anil Keshav
238339c87e
Exposing build artifact metadata from maven and npm (#5008) 2024-08-27 08:24:38 +02:00
Googlom
70d2abf40f
return back schedule trigger (#5016) 2024-08-26 14:35:41 +05:00
Tilo Körner
b5561aa8c1
add OriginHash to aakaas check (#5015) 2024-08-23 17:37:58 +03:00
Googlom
97e28683f5
Check prerelease functionality (#5000)
* check release functionality

* rename

* rename and config fix (temporary)

* permissions

* change event type

* fix

* fix

* temporary disable steps

* add event type

* fix

* fix

* fix

* fix

* fix

* fix

* uncomment

* fix for PR

* Apply suggestions from code review

* Update release-go.yml

---------

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2024-08-20 13:50:39 +05:00