предварительная ошибка семантического выпуска локально и с сервером Jenkins CI

Я пытаюсь настроить семантический выпуск с помощью Jenkins, и я прошел через документацию, eggheadio, проблемы Github и, конечно же, Google. Я застрял и мне нужна помощь.

.npmrc

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", и по умолчанию для семантической настройки cli используется моя версия "version": "0.0.0-development"

Я получаю ошибки при запуске semantic-release pre. Эта команда не работает как на моей машине разработчика, так и на сервере Jenkins CI Server. Я получаю эту ошибку при попытке выпустить на моем сервере Jenkins ...

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

Если вам интересно узнать об ошибке, которую я получаю на своей машине разработчика:

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.

Надеюсь, этой информации достаточно, но, пожалуйста, спросите, нужно ли вам больше!


person jonmajorc    schedule 26.04.2017    source источник
comment
Вы пробовали делать то, что предлагает сообщение об ошибке относительно verifyConditions?   -  person kentcdodds    schedule 26.04.2017
comment
Конечно, это сработало! Спасибо, что заметили это для меня (:   -  person jonmajorc    schedule 17.05.2017


Ответы (1)


Проверьте condition-jenkins, если у вас возникла аналогичная проблема. (:

person jonmajorc    schedule 17.05.2017