HPE ALI Hudson/Jenkins plugin configuration
The ALI Hudson plugin has a global configuration accessible from the global Configure System and the job scope configuration accessible from a specific job. For a detailed description, see the ALI integration plugin on the Hudson/Jenkins server, where every property is described.
Configure ALI settings that apply by default to all jobs. These properties can be overridden for a particular job.
- Select Manage Hudson/Jenkins > Configure System.
Under the ALI Integration section, configure the following options:
Include the credentials in the SCM configuration
Specify if the username and password should be included in the SCM repository descriptor. If this security model is enabled, the user must also have "extended read" permissions for the credentials to be listed.
Caution: Be very careful when enabling this option as the credentials for the SCM repository associated with build configurations are exposed on REST endpoints as plain text.
Default HPE AGM
When selected, information about performed builds is sent to the Agile Manager server.
Configure ALI settings for specific jobs.
Hierarchical builds. If you maintain hierarchical builds, it is sufficient to configure the root builds only. All the builds will be displayed in ALI in a tree view, and the upstream builds will include aggregated data of the downstream builds.
- Select a job and click Configure.
- In the Build section, make sure the Analyze Source Code (ALI Integration) step is included in the build procedure. This collects LOC (lines of code) information from the repository.
In the Post-build Actions section, configure the following ALI options:
ALI Integration You must select this to enable ALI integration for the job. Test sources mapping pattern This option enables you to determine test source locations based on actual test results. For details, including an example, see the ALI integration plugin help. Update build information in HPE AGM This option sends information about performed builds is sent to Agile Manager immediately after a build is started, and again when it is finished.
Click Advanced, and configure the following additional options:
HPE AGM Server Configuration Overwrites the global ALI configuration properties, and updates the build information in Agile Manager for the build job. NCover Related to NCover code coverage for NET configurations. The NCover report XMLs specifies the generated raw XML report files, such as
myproject/target/coverage-reports/*.xml. Basedir of the fileset is the root workspace.
Force.com Related to Force.com integration. For details, see Force.com integration.
From the first build onwards, the LOC data is cached and used as a basis for the next build. Only files changed since the previous build are reanalyzed and merged with the cache. If you suspect that the data may be inaccurate due to problems with the build server, you can clear the cache, and force the server to gather the data again.
- Select a job and click ALI Integration.
- Under Line Of Code Metric, click the Clear this cache link.