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

45 Commits

Author SHA1 Message Date
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
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
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
Christopher Fenner
54ff93233e
refactor(docs): separate step and docs generator (#2033)
* 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

* remove dead code
2020-09-23 13:55:17 +02:00
Florian Wilhelm
485faed812
Reduce go binary size by updating to go 1.15 (#1968)
* Update go to 1.15 to reduce binary size

Go made improvements to reduce binary size, cf https://golang.org/doc/go1.15

> Go 1.15 reduces typical binary sizes by around 5% compared to Go 1.14 by eliminating certain types of GC metadata and more aggressively eliminating unused type metadata.

In my test, this equates to about 3 mb diff between Go 1.13 and Go 1.15:

-rwxr-xr-x 1 root root 36M Aug 31 14:43 piper-go-113
-rwxr-xr-x 1 root root 33M Aug 31 14:44 piper-go-115

* Go Generate

* go mod tidy

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-09-17 08:44:42 +02:00
Florian Wilhelm
f5df533c68
Allow trigger IT via github UI (#1830)
cf https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow\#manually-running-a-workflow
2020-07-23 11:43:59 +02:00
Christopher Fenner
987eeefa81
chore(pipeline): add Code Climate coverage reporting for GO (#1148)
* add Code Climate coverage reporting

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml

* Update verify-go.yml
2020-07-22 12:30:15 +02:00
Christopher Fenner
7afc4cb60e
chore(actions): cache Golang packages (#1824)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-07-22 12:01:05 +02:00
Christopher Fenner
6c25c28801
chore(pipeline): add action to lint markdown files (#1593)
* add markdownlint action

* add markdownlint config

* add dummy change to MD file

* rename job

* run on master branch

* remove ignore files

* add dummy change

* revert dummy change

* Update markdown.yml

* Update .markdownlint.yml

* Update README.md

* Update .markdownlint.yml

* Update markdown.yml
2020-06-15 21:10:12 +02:00
Florian Wilhelm
7fc9002ce1
Build go binary without debug symbols (#1618)
This produces a much smaller binary for faster downloads.

See https://golang.org/cmd/link/ for docs on -s and -w flag.
2020-06-02 12:32:29 +02:00
Stephan Aßmus
6a96629d65
Provide a timeout of 20m for the go Integration Tests (#1613)
* Provide a timeout of 20m for the go IT
Default is 10m, see https://golang.org/cmd/go/#hdr-Testing_flags
Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
2020-05-28 18:28:38 +02:00
Florian Wilhelm
5a7b3db3a9
Publish jar for releases (#1588) 2020-05-25 18:29:52 +02:00
Florian Wilhelm
a9bf975a00
Use master version of piper binary in all usages of the action (#1581) 2020-05-22 17:18:40 +02:00
Florian Wilhelm
79729adb3e
Fix piper version to v1.34.0 for release (#1576) 2020-05-22 10:12:33 +02:00
Daniel Kurzynski
1e252ea556
Disable duplicate go integration tests (#1442) 2020-05-06 10:00:24 +02:00
Florian Wilhelm
e77209922a
Run automated go dependency update once a month (#1464)
* Assign users to automated go dependency update

* update once a month
2020-04-29 16:28:57 +02:00
Christopher Fenner
b942dcd954
fix(telemetry): correct source URL for web reporting (#1444) 2020-04-23 14:33:06 +02:00
Daniel Kurzynski
168b82b92c
Fix integration tests on master (#1440) 2020-04-22 16:41:43 +02:00
Daniel Kurzynski
9bf8e60ba0
Run integration tests on github action instead of travis (#1402) 2020-04-22 10:35:13 +02:00
Christopher Fenner
46bee01ab9
chore: cache .m2 directory during groovy tests (#1419)
* chore: cache .m2 directory during groovy tests

* rename workflow job
2020-04-17 21:29:48 +02:00
Christopher Fenner
171a063590
chore: add gh-action to generate docs (#1386)
* add workflow to generate docs

* Update documentation.yaml

* Update createDocu.sh

* add caching

* fix c&p error

* Update documentation.yaml

* Update documentation.yaml

* remove docs build from travis

* activate workflow for PRs
2020-04-17 17:44:31 +02:00
Florian Wilhelm
6d7ab39e29
Use specific token for automated go dependency update PR (#1413) 2020-04-16 17:58:59 +02:00
Akshay Iyyadurai Balasundaram
1068de9582
Update update-go-dependencies.yaml (#1399)
Proposing to update the Git config so that commits from GitHub Action bot will be recognized by GitHub.

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-15 09:38:09 +02:00
Florian Wilhelm
4028db18f7
Automate go dependency updates (#1393) 2020-04-14 12:33:18 +02:00
Daniel Kurzynski
a3c18d403f
Allow MEMBERs to trigger integration tests (#1376) 2020-04-08 11:43:24 +02:00
Daniel Kurzynski
0c70ddbbf2
Allow MEMBERs to trigger integration tests (#1375) 2020-04-08 11:33:17 +02:00
Daniel Kurzynski
56b76dfad5
Trigger integration test with command (#1368) 2020-04-08 10:33:41 +02:00
Florian Wilhelm
f482f439b0
Allow to trigger release manually (#1359) 2020-04-03 16:26:53 +02:00
Florian Wilhelm
4e9b7f6cbf
Release go-binary via piper action (#1243) 2020-03-11 16:58:56 +01:00
Christopher Fenner
0b3b4aae3d
chore: streamline GH actions (#1246)
* chore: streamline GH actions

* force use of local piper

* look for piper in project root

* use local piper

* Update .github/workflows/verify-go.yml

* remove chmod
2020-03-05 13:35:35 +01:00
Florian Geckeler
9dc352029a
Add tag release when building go binary 2020-02-27 15:01:37 +01:00
Oliver Nocon
e81f40f645
Provide foundation for integration-like tests (#1131) 2020-02-18 15:19:50 +01:00
Christopher Fenner
5e06cc4ff5
chore(pipeline): enable GH actions for PRs from forks (#1144)
* Update verify-go.yml

* Update verify-go.yml

* revert dummy change

* Update verify-go.yml

* fix code climate

* Update verify-groovy.yml
2020-02-04 10:00:02 +01:00
Christopher Fenner
6494638106
chore(pipeline): add Groovy unit test as GH action (#1140)
* Create verify-groovy.yml

* correct indent

* correct indent
2020-02-03 15:59:56 +01:00
Christopher Fenner
d2b8b373b9
chore(pipeline): add GO unit test as GH action (#1138)
* add GO unit test job

* Update .github/workflows/verify-go.yml
2020-01-31 15:18:34 +01:00
Christopher Fenner
2da06bfa91
chore(build): use GH actions to verify if go codebase is up to date (#1125)
* add action to keep codebase up to date

* add go mod tidy command

* use official go action

* correct go fmt command

* fix code climate findings

* remove dummy changes

* separate checks
2020-01-29 18:09:51 +01:00