mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45: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:
parent
98d1b9b599
commit
1413fd90e7
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ set -e
|
|||
|
||||
|
||||
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
|
||||
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
|
||||
|
@ -30,7 +30,7 @@ else
|
|||
echo Clone and build Dash Licenses
|
||||
git clone https://github.com/eclipse/dash-licenses.git >git-clone.log 2>&1
|
||||
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
|
||||
exit_code=0
|
||||
|
|
Loading…
Add table
Reference in a new issue