-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Windows 10 and Windows Server 2012. Jenkins 2.414.1. confluence-publisher 163.vf906edb_73cce.
Append/prepend/replace all wiki markup seems to no longer work on latest versions. The plugin is connected confluence cloud site, login says successful. Job is configured to just append some words. I receive the following error:
Started by user Administrator Running as SYSTEM [ATLASSIAN CLOUD PLUGIN] [WARN] Not a WorkflowRun, automatic builds and deployments won't work. Building on the built-in node in workspace C:\ProgramData\Jenkins\.jenkins\jobs\Upload confluence test\workspace [confluence] ParentId: 0000002 [confluence] Uploading attachments to Confluence page: test [confluence] Uploading 0 file(s) to Confluence... [confluence] Done [confluence] Performing wiki edits: Replace entire page content ERROR: Build step failed with exception com.atlassian.confluence.api.service.exceptions.BadRequestException: com.atlassian.confluence.api.service.exceptions.BadRequestException: Error occurred when updating content property _expandable. Cannot create new content property, see https://docs.atlassian.com/confluence/REST/latest/#content/{id}/property-create for usage. Property : JsonContentProperty{id='null', key='_expandable', content=ExpandedReference{idProperties={id=ContentId{id=000001}, version=ExpandedReference{idProperties={number=6}, of=some(Version{by=null, when=null, message='null', number=6, syncRev='null', syncRevSource='null', ncsStepVersion='null', ncsStepVersionSource='null', confRev='null', content=null})}, status=current}, of=some(Content{id='ContentId{id=000001}', type=page, title='test', status=current, space=ExpandedReference{idProperties={key=TEST}, of=some(Space{key='TEST', name='VistaLINK PRO'})}, history=ExpandedReference{idProperties={}, of=some(com.atlassian.confluence.api.model.content.History@479dc65c)}, version=ExpandedReference{idProperties={number=6}, of=some(Version{by=null, when=null, message='null', number=6, syncRev='null', syncRevSource='null', ncsStepVersion='null', ncsStepVersionSource='null', confRev='null', content=null})}, ancestors=[Content{id='ContentId{id=0000002}', type=page, title='TEST - Archived', status=current, space=null, history=null, version=null, ancestors=[], container=null, childTypes={}}], container=ExpandedReference{idProperties={}, of=some({name=VistaLINK PRO, icon=null, description=null, id=393576448, retentionPolicy=null, type=global, key=TEST, homepage=null})}, childTypes={}})}, version=null} , isSuccessful: false, isAuthorized: true, isValid: false, hasErrors: true, Errors: "jsonproperty.value.required" at com.atlassian.confluence.rest.client.model.ExceptionConverter$Client.convertToServiceException(ExceptionConverter.java:69) at com.atlassian.confluence.rest.client.AbstractRemoteService.put(AbstractRemoteService.java:489) at com.atlassian.confluence.rest.client.AbstractRemoteService.lambda$putFuture$15(AbstractRemoteService.java:248) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:75) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Build step 'Publish to Confluence' marked build as failure [ATLASSIAN CLOUD PLUGIN] [WARN] Not a WorkflowRun, onCompleted() won't be propagated to listeners Finished: FAILURE
I've replaced the space name to TEST and the page and parent page IDs. Attached are images of the jenkins configuration and job configuration with personal information removed.
Some more background:
This has been happening for several versions back. It begin approximately after migrating from confluence server to confluence cloud. However, this used to fail but still append/prepend/replace all content and show this same error, but in the last week, it no longer appends at all. I'm assuming that confluence cloud devs have changed their rest API requirements or parsing in some way.