saitho / semantic-release-backmerge

:twisted_rightwards_arrows: semantic-release plugin to back-merge a release into a develop branch
https://saitho.github.io/semantic-release-backmerge/
56 stars 11 forks source link

semantic-release-backmerge not working from v1.5.1 with Gitlab-ci. #21

Closed bychis closed 3 years ago

bychis commented 3 years ago

Hello. semantic-release-backmerge not working from v1.5.1 with Gitlab-ci.

deploy on staging: stage: build script:

publish release: stage: release variables: GITLAB_TOKEN: $GITLAB_TOKEN script:

build a production-ready docker image: stage: publish script:

deploy the new docker image: stage: deploy script:


* GItlab-ci errors:

[13:04:39] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ Release succeeded. Performing back-merge into branch "dev". [13:04:39] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ Stashing uncommitted files from Git workspace. [13:04:39] [semantic-release] › ✖ Failed step "success" of plugin "@saithodev/semantic-release-backmerge" [13:04:39] [semantic-release] › ✖ An error occurred while running semantic-release: { Error: Command failed with exit code 1: git checkout dev error: pathspec 'dev' did not match any file(s) known to git at makeError (/usr/local/lib/node_modules/@saithodev/semantic-release-backmerge/node_modules/execa/lib/error.js:60:11) at handlePromise (/usr/local/lib/node_modules/@saithodev/semantic-release-backmerge/node_modules/execa/index.js:118:26) at process._tickCallback (internal/process/next_tick.js:68:7) shortMessage: 'Command failed with exit code 1: git checkout dev', command: 'git checkout dev', escapedCommand: 'git checkout dev', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '', stderr: 'error: pathspec \'dev\' did not match any file(s) known to git', failed: true, timedOut: false, isCanceled: false, killed: false, pluginName: '@saithodev/semantic-release-backmerge' } { AggregateError: Error: Command failed with exit code 1: git checkout dev error: pathspec 'dev' did not match any file(s) known to git at makeError (/usr/local/lib/node_modules/@saithodev/semantic-release-backmerge/node_modules/execa/lib/error.js:60:11) at handlePromise (/usr/local/lib/node_modules/@saithodev/semantic-release-backmerge/node_modules/execa/index.js:118:26) at /usr/local/lib/node_modules/semantic-release/lib/plugins/pipeline.js:54:11 at process._tickCallback (internal/process/next_tick.js:68:7) name: 'AggregateError' } Cleaning up file based variables 00:01 ERROR: Job failed: exit status 1

saitho commented 3 years ago

@bychis Can I assume that v1.5.0 worked fine? I'll take a look at it.

bychis commented 3 years ago

@saitho Yes it did

saitho commented 3 years ago

@bychis The local branches were gone after checking out the repository via the URL. Should be solved in v1.5.2. :)