Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 7abf432e authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

fix SMP version for docker build

parent 7906230c
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,16 @@ while getopts v:o:s:c:p: option; do
esac
done
if [[ -z "${SML_VERSION}" ]]; then
if [[ -z "${SMP_VERSION}" ]]; then
# get version from setup file
#cd "${SMP_ARTEFACTS}"
#SMP_VERSION="$(ls smp-*-setup.zip | sed -e 's/.*smp-//g' | sed -e 's/-setup\.zip$//g')"
SMP_VERSION="$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)"
echo "Get version from the pom: $(pwd)"
SMP_VERSION="$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -q -DforceStdout)"
# go back to dirname
if [[ -z "${SMP_VERSION}" ]]; then
echo "Try to get version from artefacts: $(ls -ltr $SMP_ARTEFACTS)"
SMP_VERSION="$(ls ${SMP_ARTEFACTS}/smp-*-setup.zip | sed -e 's/.*smp-//g' | sed -e 's/-setup\.zip$//g')"
fi
fi
DIRNAME=$(dirname "$0")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment