1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00
Oliver Nocon d8444d51f2
Add possibility to add category to failures (#1692)
* Add possibility to add category to failures

It is now possible to set the error category within the flow.
When exiting the program the error category can be used.

There is  a convenience function available for exiting with a previously set category,
for example

```
log.SetErrorCategory(log.ErrorCompliance)
...
log.FatalError(err, "configuration error")
```

* extend test

* go mod tidy

* add missing comment

* update information about error categories

* Update DEVELOPMENT.md
2020-06-22 08:21:38 +02:00

54 lines
2.3 KiB
Modula-2

module github.com/SAP/jenkins-library
go 1.13
require (
github.com/GoogleContainerTools/container-diff v0.15.0
github.com/Jeffail/gabs/v2 v2.5.1
github.com/Masterminds/goutils v1.1.0 // indirect
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/Microsoft/hcsshim v0.8.9 // indirect
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
github.com/bmatcuk/doublestar v1.3.1
github.com/containerd/containerd v1.3.4 // indirect
github.com/evanphx/json-patch v4.5.0+incompatible
github.com/getsentry/sentry-go v0.6.1
github.com/ghodss/yaml v1.0.0
github.com/go-git/go-git/v5 v5.1.0
github.com/go-openapi/errors v0.19.4 // indirect
github.com/go-openapi/loads v0.19.5 // indirect
github.com/go-openapi/runtime v0.19.15
github.com/go-openapi/spec v0.19.8 // indirect
github.com/go-openapi/strfmt v0.19.5
github.com/go-openapi/swag v0.19.9 // indirect
github.com/go-openapi/validate v0.19.8 // indirect
github.com/google/go-cmp v0.4.1
github.com/google/go-containerregistry v0.0.0-20200601195303-96cf69f03a3c
github.com/google/go-github/v28 v28.1.1
github.com/google/uuid v1.1.1
github.com/huandu/xstrings v1.3.1 // indirect
github.com/magiconair/properties v1.8.1
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/moby/sys/mount v0.1.0 // indirect
github.com/moby/term v0.0.0-20200611042045-63b9a826fb74 // indirect
github.com/motemen/go-nuts v0.0.0-20200601065735-3df31f16cb2f
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/piper-validation/fortify-client-go v0.0.0-20200206215926-532b5b150d22
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.5.1
github.com/testcontainers/testcontainers-go v0.5.1
go.mongodb.org/mongo-driver v1.3.3 // indirect
golang.org/x/crypto v0.0.0-20200602180216-279210d13fed // indirect
golang.org/x/net v0.0.0-20200602114024-627f9648deb9 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980 // indirect
google.golang.org/genproto v0.0.0-20200602104108-2bb8d6132df6 // indirect
gopkg.in/ini.v1 v1.57.0
)
replace github.com/docker/docker => github.com/docker/docker v17.12.0-ce-rc1.0.20200617084433-bd5788960a5f+incompatible