无法通过语义释放推送到不合格的目的地

时间:2019-05-16 14:42:01

标签: git jenkins bitbucket semantic-release

我正在尝试使用语义释放从Jenkins作业中释放我的库,但出现此错误:

  

错误:无法推送到不合格的目的地:来源/语义发布测试

在我的本地计算机上,我没有问题。这是完整的日志:

    [14:35:42] [semantic-release] › ✔  Run automated release from branch origin/semantic-release-test
2019-05-16T14:35:42.420Z semantic-release:git Error: Command failed: git push --dry-run ssh://git@bitbucket.company.com/path/to/my/repo.git HEAD:origin/semantic-release-test
error: unable to push to unqualified destination: origin/semantic-release-test
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'ssh://git@bitbucket.company.com/path/to/my/repo.git'


    at makeError (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:278:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
2019-05-16T14:35:42.510Z semantic-release:git Error: Command failed: git push --dry-run ssh://git@bitbucket.company.com/path/to/my/repo.git HEAD:origin/semantic-release-test
error: unable to push to unqualified destination: origin/semantic-release-test
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'ssh://git@bitbucket.company.com/path/to/my/repo.git'


    at makeError (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:278:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
2019-05-16T14:35:42.611Z semantic-release:git Error: Command failed: git merge-base --is-ancestor  HEAD
fatal: Not a valid object name undefined


    at makeError (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:278:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
2019-05-16T14:35:42.611Z semantic-release:git Error: Command failed: git merge-base --is-ancestor  HEAD
fatal: Not a valid object name undefined


    at makeError (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/var/lib/jenkins/jobs/AppDesign/jobs/semantic-release POC/workspace/node_modules/semantic-release/node_modules/execa/index.js:278:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
[14:35:42] [semantic-release] › ℹ  The local branch origin/semantic-release-test is behind the remote one, therefore a new version won't be published.

我缺少什么?

0 个答案:

没有答案