init
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
ffaec04ccd
commit
5a1b8d2ca3
|
@ -3,7 +3,8 @@ package go_coverter
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/drone/drone-go/plugin/config"
|
"github.com/drone/drone-go/plugin/config"
|
||||||
|
|
||||||
|
@ -31,10 +32,10 @@ type plugin struct{}
|
||||||
func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config, error) {
|
func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config, error) {
|
||||||
resp, err := json.Marshal(req)
|
resp, err := json.Marshal(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("%+v", err)
|
logrus.Error(err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fmt.Printf("%s", string(resp))
|
logrus.Infof("%s", string(resp))
|
||||||
return &drone.Config{
|
return &drone.Config{
|
||||||
Data: defaultPipeline,
|
Data: defaultPipeline,
|
||||||
}, nil
|
}, nil
|
||||||
|
|
Loading…
Reference in New Issue