Closed hashar closed 6 years ago
Poke @mika @lkslawek
I had trouble with Jenkins agent using Jessie attempting to lint packages from stretch/unstable. There are some conflicts such as the latest Standards-Version not matching :]
The patch is a lot of copy/pasting but seems to work fine based on my local testing. I will send another patch later on that add a pbuilder hook to install and lintian inside the cowbuilder environment. https://github.com/hashar/jenkins-debian-glue/commit/4d578d9945e096f0a5a0d921e798acf61f18ab85 it is a work in progress still.
Eventually I found the mika/lintian
branch had exactly what I was looking for in a less invasive way. I have created the #191 to get it merged in master :)
scripts/lintian-junit-report first runs lintian on the build host and then post process the output to generate a JUnit file.
I have the use case to run lintian via a pbuilder hook to use the lintian version that comes with the targetted distribution. The result is a lintian.txt which I need to convert to JUnit.
Factor out the code that convert to JUnit into a new standalone script: lintian2junit
Keep all options alike and pass them to the new script. So this should be 100% back compatible.
Change-Id: I50ec91dae7088c284999d27cf9a234687332b83f