首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >语义-在本地和Jenkins CI服务器上发布预错误

语义-在本地和Jenkins CI服务器上发布预错误
EN

Stack Overflow用户
提问于 2017-04-26 15:18:43
回答 1查看 590关注 0票数 0

我正在尝试用Jenkins建立语义发布,我逐步了解了文档、eggheadio、Github问题,当然还有Google。我被困住了,需要一些善意的帮助。

.npmrc

代码语言:javascript
复制
registry=https://nexus.<org>.com/repository/npm_registry/
email=<email>
always-auth=true
_auth=<auth>
//nexus.<org>.com/repository/npm_registry/:_authToken=<token>

我不认为我的.npmrc有什么错。我可以很好地发布到我的Nexus工件存储库。

这在我的package.json "semantic-release":"semantic-release pre && npm publish && semantic-release post"和semantic cli设置中默认为"version": "0.0.0-development"

当我运行semantic-release pre时,我正在接收错误。此命令在我的dev机器和Jenkins CI Server上都不起作用。当我试图在我的Jenkins服务器上发布这个错误时.

代码语言:javascript
复制
semantic-release WARN pre semantic-release didn’t run on Travis CI and therefore a new version won’t be published.
semantic-release WARN pre You can customize this behavior using "verifyConditions" plugins: git.io/sr-plugins
semantic-release ERR! commits The commit the last release of this package was derived from is not in the direct history of the "master" branch.
semantic-release ERR! commits This means semantic-release can not extract the commits between now and then.
semantic-release ERR! commits This is usually caused by force pushing, releasing from an unrelated branch, or using an already existing package name.
semantic-release ERR! commits You can recover from this error by publishing manually or restoring the commit "f92012978d1c5f48c3f88d2150bf9c9cfba9c04e".
semantic-release ERR! commits Here is a list of branches that still contain the commit in question: 
semantic-release ERR! commits  * * (HEAD detached at a09cd81)
semantic-release ERR! pre Failed to determine new version.
semantic-release ERR! pre ENOTINHISTORY Commit not in history

如果您对我在开发机器上收到的错误感到好奇:

代码语言:javascript
复制
semantic-release WARN pre semantic-release didn’t run on Travis CI and therefore a new version won’t be published.
semantic-release WARN pre You can customize this behavior using "verifyConditions" plugins: git.io/sr-plugins
semantic-release ERR! pre Failed to determine new version.
semantic-release ERR! pre ENOCHANGE There are no relevant changes, so no new version is released.

我希望这是足够的信息,但请问你是否需要更多!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-17 18:54:24

如果您遇到类似的问题,请查看条件-jenkins。(:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43638275

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档