Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Allow customer jars for plugins #3

Open
hae-anwar-bardai opened this issue Nov 1, 2019 · 0 comments
Open

Allow customer jars for plugins #3

hae-anwar-bardai opened this issue Nov 1, 2019 · 0 comments

Comments

@hae-anwar-bardai
Copy link

Hi All,
There is a need for the build pack to support local jars for plug-ins. Will appreciate adding it in your repo.

        PLUGIN_JAR="${PLUGIN_NAME}-${PLUGIN_VERSION}.jar"
        PLUGIN_PATH="${BUILD_DIR}/sonarqube/extensions/plugins/${PLUGIN_JAR}"

        if [[ -f ${BUILD_DIR}/${PLUGIN_JAR} ]];
        then
            cp ${BUILD_DIR}/${PLUGIN_JAR} ${PLUGIN_PATH}
        else
            PLUGIN_URL="${SONARQUBE_DIST_URL}/${PLUGIN_NAME}/${PLUGIN_JAR}"
            wget ${PLUGIN_URL} -O "${PLUGIN_PATH}" --no-check-certificate -q
        fi

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant