#!/bin/bash

if [[ -z "$JENKINS_HOME" ]]; then
    echo "JENKINS_HOME is not defined" 1>&2
    exit 1
fi

mvn clean verify || { echo "Build failed"; exit 1; }

rm -rf $JENKINS_HOME/plugins/warnings*

cp -fv target/*.hpi $JENKINS_HOME/plugins

cd $JENKINS_HOME
./go.sh



#!/bin/bash

if [[ -z "$JENKINS_HOME" ]]; then
    echo "JENKINS_HOME is not defined" 1>&2
    exit 1
fi

mvn clean install || { echo "Build failed"; exit 1; }

rm -rf $JENKINS_HOME/plugins/warnings*

cp -fv target/*.hpi $JENKINS_HOME/plugins

cd $JENKINS_HOME
./go.sh



Use install for maven scripts.
Use install for maven scripts.
