#createArtifactDependency now accepts external ID instead of internal one, use #createArtifactDependencyByInternalId for internal ID. DependencyFactory#createDependency now accepts external ID instead of internal one, use .DependencyFactory#createDependencyByInternalId for internal ID. #getDisplayName display name for issue tracker in UI.Ĭhanges from 7.1.x to 8.0 External ID -related changes Dependent#getDependencyReferences and .Dependent#getNumberOfDependencyReferences were moved to This change in Github integration plugin can be taken as an exampleĬhanges from 8.1.x to 9.0 Server API changes It serves as issue tracker integration descriptor and contains id, display name and URLs to controller and issue rendering pagesĪbstractIssueProviderFactory now takes IssueProviderType as an argument rather type as a String To be compatible with 9.1, existing plugins must implement IssueProviderType and change the corresponding provider factory according to base class interface. IssueProviderType has been extracted as a separate class. The value is nullable, which means that agent pool for the instances can be configured manually in Agents->Pools UIĬhanges from 9.0 to 9.1 Issue Trackers integration API changes has new method Integer getAgentPoolId() - it represents the agent pool that instances from this image will fall into. Signature of .translateMessages method has been changed, now it accepts list of messages instead of single message: List translateMessages(SRunningBuild build, List messages) For instance, a plugin can obtain an Iterator from build log (BuildLog.getMessagesIterator) and tail it periodically in background. The plugins using these methods should be rewritten to use .BuildLog methods (see SRunningBuild.getBuildLog).īssageReceived event will not work in two-node configuration, and will be removed in the future.Ĭonsider using some other approach. Methods SRunningBuild.addBuildMessage and SRunningBuild.addBuildMessages are deprecated and cannot be used in version 10. To fix compile-time "NoClassDefFound" errors, add serviceMessages.jar to your project's library. This change only affects compile time (already compiled binaries will work as is). serviceMessages.jar is now essential part of Common API. Service messages-related classes are no longer available in common-api.jar. class can be used as base class for project-level suggestions PreparationFinished - called when all preparations for the build are finished (sources checkout, personal patch, artifact dependencies, free disk space requirement, etc) UptodateValue:TimeToLiveProvider#getTimeToLiveMillis since 10.0 has a parameter - value to be cached, so the cache time can depend on the cached valueĪgentLifeCycleListener and AgentLifeCycleAdapter have two new methods:ĭependenciesDownloaded - called when all artifact dependencies of the build have been successfully resolved and downloaded ServerVersionInfo.getDisplayVersionMajor and ServerVersionInfo.getDisplayVersionMinor now return int instead of byte Several methods were added to support artifact retrieval using this interface instances. GetUsagesAsDefaultTemplate() and getNumberOfUsagesAsDefaultTemplate() have been addedĪrtifactsURLProvider is renamed to ArtifactAccessor. GetDefaultTemplate(boolean) has been added With the introduction of default templates the following changes have been made: GetTemplates() and getTemplateIds() were introduced insteadĪttachToTemplate(BuildTypeTemplate) and detachFromTemplate() were deprecatedĪddTemplate(BuildTypeTemplate, boolean), and removeTemplates(Collection, boolean) were introduced insteadĪlso setTemplates(List, boolean) and setTemplatesOrder(List) were added GetTemplate() and getTemplateId were deprecated With the introduction of the ability to attach a build configuration to multiple templates the following changes have been made: Open API Changes Changes from 2021.1 to 2021.2
0 Comments
Leave a Reply. |