Comments (11)
是在jenkins自带的插件库里,安装的插件,jenkins版本2.190.1 插件版本1.4
from maven-snapshot-check-plugin.
日志和截图提供下吧?
从 pipeline 看不出来问题
from maven-snapshot-check-plugin.
Started by user admin
[Pipeline] node
Running on master in /root/.jenkins/workspace/business_indicators-api.jar
[Pipeline] {
[Pipeline] pwd
[Pipeline] stage (checkout)
Using the ‘stage’ step without a block argument is deprecated
Entering stage checkout
Proceeding
[Pipeline] dir
Running in /root/.jenkins/workspace/business_indicators-api.jar/parent
[Pipeline] {
[Pipeline] git
using credential jenkins
/usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
/usr/bin/git config remote.origin.url http://47.94.250.239/cgd-base_dev/parent.git # timeout=10
Fetching upstream changes from http://47.94.250.239/cgd-base_dev/parent.git
/usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials
/usr/bin/git fetch --tags --progress http://47.94.250.239/cgd-base_dev/parent.git +refs/heads/:refs/remotes/origin/
/usr/bin/git rev-parse refs/remotes/origin/mvn_refactor^{commit} # timeout=10
/usr/bin/git rev-parse refs/remotes/origin/origin/mvn_refactor^{commit} # timeout=10
Checking out Revision 85df86d121781471033bab0fe3fdaee5cb21b5e4 (refs/remotes/origin/mvn_refactor)
/usr/bin/git config core.sparsecheckout # timeout=10
/usr/bin/git checkout -f 85df86d121781471033bab0fe3fdaee5cb21b5e4
/usr/bin/git branch -a -v --no-abbrev # timeout=10
/usr/bin/git branch -D mvn_refactor # timeout=10
/usr/bin/git checkout -b mvn_refactor 85df86d121781471033bab0fe3fdaee5cb21b5e4
Commit message: "支付结算工程改造,通过从私服取对应版本号的JAR包进行依赖"
/usr/bin/git rev-list --no-walk 85df86d121781471033bab0fe3fdaee5cb21b5e4 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] dir
Running in /root/.jenkins/workspace/business_indicators-api.jar/business_indicators
[Pipeline] {
[Pipeline] git
using credential jenkins
/usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
/usr/bin/git config remote.origin.url http://47.94.250.239/cgd-eCommerce_dev/business_indicators.git # timeout=10
Fetching upstream changes from http://47.94.250.239/cgd-eCommerce_dev/business_indicators.git
/usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials
/usr/bin/git fetch --tags --progress http://47.94.250.239/cgd-eCommerce_dev/business_indicators.git +refs/heads/:refs/remotes/origin/
/usr/bin/git rev-parse refs/remotes/origin/mvn_refactor^{commit} # timeout=10
/usr/bin/git rev-parse refs/remotes/origin/origin/mvn_refactor^{commit} # timeout=10
Checking out Revision 1cf1c90bd1e75749be7ceace606ddfb243305212 (refs/remotes/origin/mvn_refactor)
/usr/bin/git config core.sparsecheckout # timeout=10
/usr/bin/git checkout -f 1cf1c90bd1e75749be7ceace606ddfb243305212
/usr/bin/git branch -a -v --no-abbrev # timeout=10
/usr/bin/git branch -D mvn_refactor # timeout=10
/usr/bin/git checkout -b mvn_refactor 1cf1c90bd1e75749be7ceace606ddfb243305212
Commit message: "可通过命令(-pl business_indicators-api -am)不打包center工程"
/usr/bin/git rev-list --no-walk 1cf1c90bd1e75749be7ceace606ddfb243305212 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] mavenSnapshotCheck
[Maven SNAPSHOT Check]
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/business_indicators-api/pom.xml:
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/business_indicators-center/pom.xml:
1.1-SNAPSHOT
1.1.1-SNAPSHOT
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/pom.xml:
1.0.0-SNAPSHOT
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/parent/pom.xml:
1.0.0-SNAPSHOT
<elastic-job-lite.version>2.0.6-SNAPSHOT</elastic-job-lite.version>
[Pipeline] stage (Build)
Using the ‘stage’ step without a block argument is deprecated
Entering stage Build
Proceeding
[Pipeline] sh
[business_indicators-api.jar] Running shell script
- cd /root/.jenkins/workspace/business_indicators-api.jar/parent
- /usr/local/maven/bin/mvn clean install -Pprod
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< com.cgd:parent >---------------------------
[INFO] Building parent 1.0.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing /root/.jenkins/workspace/business_indicators-api.jar/parent/pom.xml to /usr/local/maven/repository/com/cgd/parent/1.0.0-SNAPSHOT/parent-1.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.319 s
[INFO] Finished at: 2019-11-11T15:49:23+08:00
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: FAILURE
from maven-snapshot-check-plugin.
好像插件是生效了,日志也没问题,就最后变成FAILURE了
from maven-snapshot-check-plugin.
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/business_indicators-api/pom.xml:
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/business_indicators-center/pom.xml:
1.1-SNAPSHOT
1.1.1-SNAPSHOT
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/business_indicators/pom.xml:
1.0.0-SNAPSHOT
1.1-SNAPSHOT
/root/.jenkins/workspace/business_indicators-api.jar/parent/pom.xml:
1.0.0-SNAPSHOT
<elastic-job-lite.version>2.0.6-SNAPSHOT</elastic-job-lite.version>
从这里看 SNNAPSHOT 校验失败了
按理来说,失败了就应该终止了,你这个还会往下跑
from maven-snapshot-check-plugin.
对,pipline就会继续往下跑,使用自有构建的项目,就会直接终止
from maven-snapshot-check-plugin.
谢谢反馈,我看下代码
from maven-snapshot-check-plugin.
在 Jenkins ver. 2.107.3 环境下直接就终止了
应该和 Jenkins 版本有关系,有的版本不兼容~
from maven-snapshot-check-plugin.
好的
from maven-snapshot-check-plugin.
新发了一个版本,你看下:
https://github.com/jenkinsci/maven-snapshot-check-plugin/releases/tag/maven-snapshot-check-1.5
from maven-snapshot-check-plugin.
好的,感谢 我试试
from maven-snapshot-check-plugin.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maven-snapshot-check-plugin.