If you don't enter input for a required field of a build step during configuration, BMC AMI DevOps displays an error. You can still build the project, but the project fails.
To use an older version of the BMC AMI DevOps plug-in in Jenkins, follow these steps:
- Manually reinstall the .hpi file of the older version.
- Restart the Jenkins server when no jobs are running.
WarningImportant
You can't downgrade the BMC AMI DevOps Common and BMC AMI DevOps Schema Management for Db2 plug-ins un the Jenkins web user interface because they are private plug-ins.
Handling Bad Message 414 errors
During configuration, if your input in a field exceeds 8 KB of text, Jenkins displays a Bad Message 414 error in the BMC AMI DevOps Schema Mgmt for Db2 - Schema Change Migration build step. To resolve this issue, increase the Jenkins header size to 32 KB as follows:
- Log out of Jenkins.
- Navigate to the directory on your system in which Jenkins is installed.
- Open the jenkins.xml file.
- Save the jenkins.xml file with a different name to create a backup. For example, save the file as jenkins_backup.xml.
- Open the original jenkins.xml file.
In the <arguments> statement, add the following parameters with the following values:
- -Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000
- --requestHeaderSize=32768
The following example illustrates the <arguments> statement in the jenkins.xml file with the required parameters:
<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle
-Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000 -jar
"%BASE%\jenkins.war" --httpPort=8087 --requestHeaderSize=32768
--webroot="%BASE%\war"</arguments>
- Log in to Jenkins again.
If you have a problem running your Jenkins pipeline with your rule set in the BMC AMI DevOps Schema Mgmt for Db2 - Schema Standards build step, set Violation Response to WARN. This allows the pipeline to run all steps to completion until you can correct your schema definition.
- If you receive a host variable or SQL error for your rule, you can set your rule to inactive in BMC AMI Command Center for Db2 rule editor. This allows the pipeline or project to run to completion until you can resolve the error with the rule.
Handling errors when running a sample configuration
If you get the following error when trying to run a BMC-provided sample configuration, open the Jenkins project or pipeline configure page and click Save or Apply. Then rerun the project or pipeline. For more information about configuring a sample project or pipeline, see To use the configuration provided in the sample project.
ERROR: Build step failed with exception
java.lang.NullPointerException: Cannot invoke "java.util.List.clear()" because "this.inputArrList" is null
at PluginClassLoader for BMC-AMI-DevOps-Db2-SM//com.bmc.db2.acmjcomp.ACMComp.perform(ACMComp.java:619)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:164)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:527)
at hudson.model.Run.execute(Run.java:1860)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:460)
Build step 'BMC AMI DevOps Schema Mgmt for Db2 - Schema Change Migration' marked build as failure
Finished: FAILURE
Configuration best practice: handling manual config.xml updates
- When you manually copy or replace a job’s config.xml file directly in the Jenkins job directory (for example, through the file system), we recommend that you re-initialize the job configuration before running the next build. Manually updating the config.xml modifies only the stored XML file. It doesn't activate Jenkins’ lifecycle methods (such as the job's Constructor or associated DescriptorImpl methods). These methods are responsible for loading job parameters, initializing plug-in data, and ensuring the project is correctly constructed in memory.
- If you skip this re-initialization step, Jenkins may attempt to run the job with incomplete or uninitialized configuration data, which can lead to runtime failures, including NullPointerException errors.
To ensure job stability and prevent runtime errors when you have manually modified or copied a job's config.xml, complete the following steps:
- Copy or replace the config.xml file in the job directory.
- Restart Jenkins or click Reload Configuration from Disk under Manage Jenkins.
- In the Jenkins UI, open the job’s Configure page.
- Click Save or Apply.
This sequence forces Jenkins to call the necessary lifecycle methods, ensuring the job is fully initialized in memory before any subsequent build. For more information about configuring a sample project or pipeline, see To use the configuration provided in the sample project.
Jenkins and Java version requirements
To ensure stability and proper operation, the updated BMC AMI DevOps plug-ins require minimum supported versions of both Jenkins controller and agents and Java running the environment.
The following scenarios describe potential version conflicts and the required corrective actions.
The BMC AMI DevOps plug-ins require a minimum Jenkins version of 2.528.1 or later. For more information, see Planning. Attempting to install the BMC AMI DevOps plug-ins on an older Jenkins version results in the following error during the installation process:
Failed to load: BMC AMI DevOps Common (BMC-AMI-DevOps-Common 13.01.00.0007.01)
- Update required: Folders Plugin (cloudbees-folder 6.1023.v4fcb_72152519) to be updated to 6.1062.v2877b_d6b_b_eeb_ or higher
- Jenkins (2.528.1) or higher required
Action: Upgrade Jenkins to version 2.528.1 or later.
Installing and running the updated plug-ins with a valid Jenkins version and a controller Java version while the agent Java version is earlier than required
The Jenkins controller is running on a supported Java version (for example, Java 21), but one or more execution agents are running on an earlier version of Java (for example, Java 17). Builds running on the outdated agent fail with Java compatibility errors. Jenkins console log displays message BMCAMA00056E, and the agent system log displays java.lang.UnsupportedClassVersionError, indicating a class compiled for a later Java version is running on an agent with an older Java version.
An example of the Jenkins console log is as follows:
Execution Mode:
Run Step in Debug Mode : true
Provide Password via Build Parameter : false
ACMAuth: Plug-in Variables File Path validation error
ERROR: BMCAMA00056E Error occurred while processing file
Finished: FAILURE
Action: Upgrade the agent Java version to match the controller Java version (Java 21 or later), because Jenkins requires that all agents run on the same Java version as the controller.
Installing and running the updated plug-ins with a valid Jenkins version while the controller Java version is earlier than required
If you install the updated plug-ins on a supported Jenkins version while the Jenkins controller uses an older Java version (earlier than the minimum required version), Jenkins loads the plug-ins but omits critical functionality steps from job configurations. The plug-ins appear to install successfully in the UI, and Jenkins shows no installation errors under the plug-in names. However, the controller can't load the plug-in classes because they were compiled for a newer Java version. The following issues occur:
- Critical plug-in functionality is missing, including BMC AMI DevOps steps in the Add Build Step menu.
- Job configurations that rely on BMC AMI DevOps steps appear empty, because Jenkins can't load or render the associated components.
- The only indication of failure appears in the Jenkins system logs, which contain multiple initialization errors, including an UnsupportedClassVersionError.
Action: Upgrade the Jenkins controller Java version to Java 21 or later.