1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
Commit Graph

95 Commits

Author SHA1 Message Date
Jk1484
ffc931aad1
feat(golangBuild): use 'unit' build tag to include tests during test execution (#4345)
* Added unit tag as argument. Added description to runTests command. Changed code generator to have unit build tag in generated unit test files.

* Added unit build tag to all unit test files.

* added to new unit test unit build tag

* Update verify-go.yml

* small fix

---------

Co-authored-by: Muhammadali Nazarov <Muhammadali.Nazarov@acronis.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2023-05-03 21:02:11 +05:00
Maurice Breit
4f4e667797
add ascAppUpload step (#4286)
* add ascAppUpload step

add step that uploads an app binary to Application Support Center (ASC)

* re-run go generate

* fix typo in CODEOWNERS

* Update CODEOWNERS
2023-04-18 08:56:32 +02:00
Christopher Fenner
0fa1e09464
chore(pipeline): update go-version for linting action (#4213)
* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml
2023-02-03 12:35:57 +01:00
Philipp Stehle
9533280459
chore(GitHub actions): update deprecated output syntax (#4197) 2023-02-03 10:21:24 +01:00
gerstneralex
1ae967061d
Add TMS service key to environment in integration test workflow job (#4192) 2023-01-19 10:02:56 +01:00
Christopher Fenner
083c7edbfe
chore(codeowners): change default code owners
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-12-27 10:02:22 +01:00
Philipp Stehle
2a18b9dc29
fix ci: missing needs in github action yaml (#4146) 2022-12-12 08:55:38 +01:00
Pavel Busko
fb9784dd67
fix(workflow): pin mkdocs-material version to v8.5.11 (#4153)
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
2022-12-09 09:45:25 +01:00
Oliver Nocon
761dc75e82
Update build-adr.yml (#4101) 2022-11-03 08:50:41 +01:00
Oliver Nocon
e44aaf86e4
chore: prepare setup for future ADRs (#4054)
* chore: prepare setup for future ADRs

* Update build-adr.yml
2022-11-02 14:30:34 +01:00
Marc Bormeth
db5351f4d3
Build and release Piper binary for Apple Silicon as well (#4016) 2022-10-05 15:31:47 +04:00
Alexey Matvievsky
2dfca180a7
(feat) Golang integration tests dynamic workflow
* Dynamic version detection of Golang 

* Dynamic Golang integration tests run matrix

* Golang timeout to build set at 5 min

* Golang integration test timeout to run set at 10 min

* Consumer tests timeout set at 20 min

Co-authored-by: Alexey Matvievsky <alexey.matvievsky@sap.com>
2022-09-22 19:12:13 +02:00
Alexey Matvievsky
b28df9d9dd
it/integration-tests-event-fix@v4 (#4040)
* uses: styfle/cancel-workflow-action@0.10.0

* specify pull request repository directly

Co-authored-by: Alexey Matvievsky <alexey.matvievsky@sap.com>
2022-09-22 13:14:53 +03:00
Alexey Matvievsky
2ac8ead02c
Integration tests workflow quick fix 3 (#4033)
* Integration tests fix #2

* Now on event GHA job should look at the pull request branch

* fix

Co-authored-by: Alexey Matvievsky <alexey.matvievsky@sap.com>
2022-09-21 13:08:15 +06:00
Alexey Matvievsky
e61d358306
Integration tests workflow fix 2 (#4032) 2022-09-20 22:29:21 +06:00
Alexey Matvievsky
881d10354f
Integration tests workflow event triggering quick fix (#4031) 2022-09-20 12:23:31 +02:00
Alexey Matvievsky
a6a8f4b142
Integration tests workflow fix and execution time reduction (#4026)
Consumer tests moved to separate workflow
2022-09-20 10:24:04 +04:00
Alexey Matvievsky
e5f2f1414e
Improve integration tests (#4019)
Improve integration tests
2022-09-19 14:47:13 +04:00
Anil Keshav
81e7423ea6
Revert "publishing master binary once after all builds (#3885)" (#3890)
This reverts commit c3b4925f0b.
2022-07-12 16:22:18 +02:00
Anil Keshav
c3b4925f0b
publishing master binary once after all builds (#3885)
Co-authored-by: anilkeshav27 <you@example.com>
2022-07-11 11:30:38 +02:00
Ashly Mathew
fc143235d4
fix : update mkdocs version (#3847) 2022-06-27 10:11:13 +02:00
Julian Schmitt
ea001341cb
upgrade lint-test to go 1.18 (#3804)
Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>
2022-05-25 15:30:52 +02:00
Thorsten Duda
7748e81b59
Update go version to 1.18 (#3783)
* Update go version to 1.18

* Update go version to 1.18

* Create awsS3Upload (#3737)

* add Step awsS3Upload

* fix JSON Read

* fix groovy wrapper

* change credentials to secret text

* Change credentials type to token

* add cleanup for environment variables

* Add AwsS3UploadCommand to piper.go

* add documentation of awsS3Upload

* Fix JSON String Example in Documentation

* add the Upload of whole directories

* add Logging to awsS3Upload.go

* imporve Logging

* fix and improve unit tests

* fix non-existing-filepaths-Bug

* fix windows filepaths

* remove ... from logging

* change step description

* fix PR Tests

* remove redundant code

* try to run tests sequentially

* fix file.Close

* executed go mod tidy

* requested changes

* fix comments and awsCredentials

* Update documentation/docs/steps/awsS3Upload.md

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>

* use temporary files for unit tests

* executed go generate

Co-authored-by: ffeldmann <f.feldmann@sap.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>

* fix go.sum

* Fix project config reset when preset is set (#3782)

Co-authored-by: Julian Schmitt <97178428+JulianPSchmitt@users.noreply.github.com>
Co-authored-by: ffeldmann <f.feldmann@sap.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Co-authored-by: Adrien <99400874+hubadr@users.noreply.github.com>
2022-05-19 10:30:10 +02:00
Daniel Mieg
b2209c088a
Extend codeowners (ABAP) (#3761)
* Extend codeowners (ABAP)

* formatting
2022-04-28 14:47:58 +02:00
Philipp Stehle
511a541bd5
add more codeowners (#3430)
* add more codeowners

Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>

* Apply suggestions from code review

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

* apply decisions from alignment meeting

Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>

Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2022-04-13 13:19:48 +02:00
Christopher Fenner
d326a44b92
chore(release): publish all binaries with one piper step (#3720)
This reverts commit 5ff656a208.
2022-04-08 14:46:03 +02:00
Christopher Fenner
5ff656a208
chore(release): reverts #3703 (#3719)
This reverts commit 30e06b8311.
2022-04-08 13:52:18 +02:00
Christopher Fenner
30e06b8311
chore(release): publish all binaries with one piper step (#3703) 2022-04-08 13:27:46 +02:00
Christopher Fenner
eea443e138
fix copy&paste issue (#3698) 2022-04-04 12:55:47 +02:00
Oliver Nocon
23ea4111fb
Update release-go.yml (#3689)
Co-authored-by: ffeldmann <f.feldmann@sap.com>
2022-03-31 16:42:15 +02:00
Siarhei Pazdniakou
a1e2d8e8f3
Increased timeout for integration tests (#3648) 2022-03-18 16:30:41 +01:00
Oliver Nocon
0998a80f07
chore: update to go 1.17 (#3557)
* chore: update to go 1.17

Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>

* update workflows

Co-authored-by: Pavel Busko <pavel.busko@sap.com>

* fixed multipart upload tests

Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>

* go fmt

Co-authored-by: Pavel Busko <pavel.busko@sap.com>

* Update to go 1.17

Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>

* Update vault to v1.9.3

Co-authored-by: Pavel Busko <pavel.busko@sap.com>

Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
Co-authored-by: ffeldmann <f.feldmann@sap.com>
2022-03-07 17:15:36 +01:00
Philipp Stehle
c525936314
add staticcheck github action (#3605) 2022-03-07 14:52:20 +01:00
Christopher Fenner
ba30ee6def
ci: name release steps (#3304) 2021-11-23 07:39:30 +01:00
Philipp Stehle
f9f0cbfd33
enforce that step metadata yaml file is called <step>.yaml (#3226)
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
2021-11-15 14:20:20 +01:00
Oliver Nocon
60a114d738
chore(docs): improve step documentation (#3162)
* chore(docs): improve step documentation

* chore: fix test

* chore: add note box

* use latest mkdocs imgage

* add extensions and fix config
2021-10-11 15:22:24 +02:00
Christopher Fenner
ca50cc895e
chore: add note about DCO (#2985)
* Update CONTRIBUTING.md

* Apply suggestions from code review

Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>

Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
2021-10-11 13:54:43 +02:00
Oliver Nocon
c23088f7b3
Add GitHub Action to clean up stale issues and PRs (#2034)
* Add GitHub Action to clean up stale issues and PRs

* Update config.yml

* Update stale.yaml

* update messages

* Update stale.yaml

* update text and closing timeout

* Update stale.yaml

* Update stale.yaml

* Update stale.yaml

* Update .github/workflows/stale.yaml

Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>

* Update .github/workflows/stale.yaml

Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>

* Update .github/workflows/stale.yaml

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>

* Update .github/workflows/stale.yaml

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>

* fix string syntax

Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2021-10-01 14:45:23 +02:00
Kevin Stiehl
1079aaba53
ci(release): remove unused copies and name downloads correctly (#2897) 2021-06-15 14:04:38 +02:00
Oliver Nocon
06e67db5e3
chore: release binaries for darwin and win (#2883)
* chore: release binaries for darwin and win

* Apply suggestions from code review

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2021-06-10 12:39:23 +02:00
Marc Bormeth
911d4bc770
feat(sonar): make step orchestrator-agnostic (#2874)
* Make sonarExecuteScan orchestrator-agnostic

* Increase coverage + support empty or false env vars

* Use cleared env for unit tests

* Refactor to standalone package

* Fix review findings

* Fix review findings

* Fix unit test

* Add logging

* Refactor

* Add to codeowners 😎

* Apply suggestions from code review

* Remove unreachable code

* no message

* fix typos

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2021-06-09 09:38:52 +02:00
Christopher Fenner
1cbc40f3d0
claim code ownership for Sonar (#2812)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-05-06 11:39:07 +02:00
Christopher Fenner
e11de9dbeb
chore(ci): add yamllint action (#2774)
* chore(ci): add yamllint action

* Create .yamllint.yml

* Update verify-yaml.yml

* Update verify-yaml.yml

* Update verify-yaml.yml

* Update verify-yaml.yml

* Update verify-yaml.yml

* correct yaml format

* correct yamllint findings

* disable truthy rule

* add pattern for workflows yamls

* fix c&p issue
2021-04-22 12:55:35 +02:00
Christopher Fenner
f9c0092f2e
chore(voter): show changes caused by git diff (#2633) 2021-03-12 10:12:40 +01:00
Florian Wilhelm
9f25fd5950
Run build on java 8 (#2675)
Workaround for #1723, because Ubuntu 20.04 VMs include Java 11 by default
2021-03-11 10:35:56 +01:00
Christopher Fenner
fbbb55471d
tests: expose sonar test secret to workflows (#2646)
* Update integration-tests-pr.yaml

* Update integration-tests.yaml
2021-02-24 12:58:48 +01:00
Marcus Holl
a6b2cb9c83
Tell us what was changed. (#2492)
With the current approach we get a failure when the generated
content triggers a change. But we cannot see what was changed.

With this commit we can see the diff. In case there is not diff
we will not see anything, so there is in that case no real change
in the behaviour. But in case there is a change we will see that
change.

Without that we have to reproduce locally, which means additional
efforts.
2021-01-04 13:23:30 +01:00
Florian Wilhelm
2ac5c42d15
Don't update go dependencies on schedule (#2447) 2020-12-07 09:20:31 +01:00
Florian Wilhelm
020ed15f34
Replace deprecated set-env github actions command (#2264)
cf https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
2020-10-30 10:47:03 +01:00
Christopher Fenner
0797f4049a
feat(docs): use custom defaults during docs generation (#2022)
* remove docs generator code from step-generator

* add docs generator to dedicated package

* add test cases

* add entry point for docs generation

* make output more readable

* read additional defaults

* add custo defaults parameters

* remove commented code

* adjust custom default parameter in workflow

* remove conflict leftovers

* handle custom default values

* remove comment

* extract code to function

* extract metadata reading to function

* do not print empty strings in favor of PIPER_* env vars

* extract new code to own metadata file

* only reset default on booleans

* remove obsolete test case
2020-10-16 12:50:39 +02:00