mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-03 06:08:42 +00:00
fix for #2480
This commit is contained in:
parent
a1d270a253
commit
eb96456909
3 changed files with 6 additions and 3 deletions
|
@ -118,7 +118,7 @@ pipeline:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: drone/drone
|
repo: drone/drone
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
tag: [ 0.8, 0.8.6 ]
|
tag: [ 0.8, 0.8.7 ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ pipeline:
|
||||||
repo: drone/agent
|
repo: drone/agent
|
||||||
dockerfile: Dockerfile.agent
|
dockerfile: Dockerfile.agent
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
tag: [ 0.8, 0.8.6 ]
|
tag: [ 0.8, 0.8.7 ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
|
|
@ -188,6 +188,9 @@ func LogStreamSSE(c *gin.Context) {
|
||||||
go func() {
|
go func() {
|
||||||
// TODO remove global variable
|
// TODO remove global variable
|
||||||
Config.Services.Logs.Tail(ctx, fmt.Sprint(proc.ID), func(entries ...*logging.Entry) {
|
Config.Services.Logs.Tail(ctx, fmt.Sprint(proc.ID), func(entries ...*logging.Entry) {
|
||||||
|
defer func() {
|
||||||
|
recover() // fix #2480
|
||||||
|
}()
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|
|
@ -22,7 +22,7 @@ var (
|
||||||
// VersionMinor is for functionality in a backwards-compatible manner.
|
// VersionMinor is for functionality in a backwards-compatible manner.
|
||||||
VersionMinor int64 = 8
|
VersionMinor int64 = 8
|
||||||
// VersionPatch is for backwards-compatible bug fixes.
|
// VersionPatch is for backwards-compatible bug fixes.
|
||||||
VersionPatch int64 = 6
|
VersionPatch int64 = 7
|
||||||
// VersionPre indicates prerelease.
|
// VersionPre indicates prerelease.
|
||||||
VersionPre string
|
VersionPre string
|
||||||
// VersionDev indicates development branch. Releases will be empty string.
|
// VersionDev indicates development branch. Releases will be empty string.
|
||||||
|
|
Loading…
Reference in a new issue