1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

[releng] Automate running of dash licenses (fixup)

Run maven with MVN to allow Jenkinsfile to set default maven options

Change-Id: I42454620e54c57ba3e08a5a33c86b9b48e0cd55d
This commit is contained in:
Jonah Graham 2020-08-31 16:13:32 -04:00
parent 98d1b9b599
commit 1413fd90e7

View file

@ -17,7 +17,7 @@ set -e
echo Generate the list of dependencies according to Maven echo Generate the list of dependencies according to Maven
mvn package dependency:list -DappendOutput=true -DoutputFile=$PWD/deps-raw.log >mvn-dependency-list.log 2>&1 ${MVN:-mvn} -B -V package dependency:list -DappendOutput=true -DoutputFile=$PWD/deps-raw.log >mvn-dependency-list.log 2>&1
echo Clean out the lines and whitespace that are not actually dependencies echo Clean out the lines and whitespace that are not actually dependencies
cat deps-raw.log | grep -v "The following files have been resolved" | grep -v " none" | grep -Poh '[^ ]*' > deps-stripped.log cat deps-raw.log | grep -v "The following files have been resolved" | grep -v " none" | grep -Poh '[^ ]*' > deps-stripped.log
echo Sort and uniqify and store all deps in deps.log that will be passed to the tool echo Sort and uniqify and store all deps in deps.log that will be passed to the tool
@ -30,7 +30,7 @@ else
echo Clone and build Dash Licenses echo Clone and build Dash Licenses
git clone https://github.com/eclipse/dash-licenses.git >git-clone.log 2>&1 git clone https://github.com/eclipse/dash-licenses.git >git-clone.log 2>&1
fi fi
mvn -f dash-licenses clean package >dash-build.log 2>&1 ${MVN:-mvn} -B -V -f dash-licenses clean package >dash-build.log 2>&1
echo Run the license check echo Run the license check
exit_code=0 exit_code=0