Git Product home page Git Product logo

maven-snapshot-check-plugin's Introduction

Maven SNAPSHOT Check Plugin

Build Status codecov Jenkins Plugin GitHub release Jenkins Plugin Installs

README 中文版

This plugin used to check if pom.xml contains SNAPSHOT.

Usage

FreeStyle job usage

use the Build Step called Maven SNAPSHOT Check in Build section

add-build-step

If check the checkbox, it will check if pom.xml contains SNAPSHOT.

maven-snapshot-check-plugin-usage

Then it will marked the build failed if matches.

job-build-console-output

Maven job usage

use the pre-build step called Maven SNAPSHOT Check in Pre Steps section pre-build-step

Pipeline job usage

step([$class: 'MavenSnapshotCheck', check: 'true'])

or

mavenSnapshotCheck check: 'true'

or, you can customize the pomFiles parameter to check only the specified pom files (If the pomFiles parameter is not defined, its default value is pom.xml, * */pom.xml), or, you can customize the excludePomFiles parameter to skip check the specified pom files (If the excludePomFiles parameter is not defined, its default value is null),

mavenSnapshotCheck check: 'true', pomFiles: 'pom.xml,sub-dir/pom.xml', excludePomFiles: 'sub-dir-2/pom.xml'

Bug reports

Please report bugs and feature requests at https://github.com/jenkinsci/maven-snapshot-check-plugin/issues.

How to build and test

  • Build the plugin:

mvn package

  • Test locally (invokes a local Jenkins instance with the plugin installed):

mvn hpi:run

See https://jenkinsci.github.io/maven-hpi-plugin/ for details.

maven-snapshot-check-plugin's People

Contributors

daniel-beck-bot avatar dependabot[bot] avatar donhui avatar stazz0 avatar strangelookingnerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

maven-snapshot-check-plugin's Issues

请教jenkins插件问题

想请教下作者,如果想做一个打包的当前git分支是否合并了master的代码,是否可行

插件的使用效果模糊

pipline内容

node () {
def workspace = pwd()
def branch = 'prod'

 stage 'checkout'

    dir('parent'){
        git branch: branch, credentialsId: 'jenkins', url: 'http://1.1.1.1/test.git'        
    }

    step([$class: 'MavenSnapshotCheck', check: 'true'])

stage 'Build'
    sh"""
        cd $workspace/test
       /usr/local/maven/bin/mvn clean install -Pprod
    """
}

从日志看是没问题的都正常,但结束后状态显示错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.