netbeans
netbeans copied to clipboard
Netbeans CI using Apache Jenkins infra
Build and publish reports using a Jenkins pipeline: https://ci-builds.apache.org/job/Netbeans/job/netbeans-github/
Discussion here: https://lists.apache.org/thread.html/raff8bc5553e0dcfb2badf02a12e82a3c111f6ffa48b8eccffe811415%40%3Cdev.netbeans.apache.org%3E
Checks seems to be confused, perhaps by all the force-pushes. Hard to follow what went on here.
Sorry, I've been testing some changes
hi @hectorespert you should discard old build maybe options { buildDiscarder(logRotator(numToKeepStr: '2')) }
hi @hectorespert you should discard old build maybe options { buildDiscarder(logRotator(numToKeepStr: '2')) }
buildDiscarder option added
Despite often helping to maintain it, Ant is so rarely used these days that I totally forgot to suggest https://plugins.jenkins.io/ant/
withAnt {
sh 'ant …'
}
which will improve display in the standard console log.
Jenkins test this please
@hectorespert that at the end is intended to replace GA and travis to check for PR ?
I would suggest removing the content of the Jenkinsfile.groovy and make it call a new libraries (example here: https://github.com/apache/netbeans/blob/master/nbbuild/jenkins/Jenkinsfile.groovy)
And you can add the real content here. https://github.com/apache/netbeans-jenkins-lib/tree/master/vars
That may allow "independent" tweaking of the job and may save your time adjusting.
Libraries are for sharing Pipeline script across projects. I would especially warn against loading a library from an implicit master branch as it means that pushes to another repo could cause builds to suddenly start breaking in this one, or conversely that PRs to this repo would fail until another repo was updated. Better to keep the Pipeline script here, so that for example a refactoring to build.xml to change Ant target names could simply make the corresponding change to Jenkinsfile.
I see, on the particular case of netbeans I used it to avoid always copying pipeline modification because we build release branch to have javadoc menu updated on prior release (for forward navigation). But for PR seems more tricky.
@hectorespert that at the end is intended to replace GA and travis to check for PR ?
Yes, it was a try to start replacing GA and Travis due the limitations of these.
For PRs, if the Jenkins file is defined in project, it allows to adjust o improve the pipeline in an specific branch before merge it, like the travis.yaml config and GA config files.
@hectorespert, maybe for testing/adjusting you may use empty https://github.com/apache/netbeans-temp (@JaroslavTulach created it but maybe we can recycle ) and configure jenkins to see how it may scale behave on several parell PR / master
@mbien I think the new way with GA may allow to close this one. travis is out.
@mbien I think the new way with GA may allow to close this one. travis is out.
@ebarboni agreed, closing.