hpcloud / cloudfoundry-jenkins

Jenkins plugin to push an application to Cloud Foundry at the end of a build
MIT License
4 stars 33 forks source link

CF-UnprocessableEntity error by pushing docker images via manifest.yml #17

Open BiberacherAndreas opened 5 years ago

BiberacherAndreas commented 5 years ago

CF-Plugin-Version: 2.3.1 Jenkins-Version: 2.89.3

Context: I´m trying to push docker images to CF and instanziate them via a manifest.yml. The images are both public and private images from registry.hub.docker.com. To do so I´m using a code based jenkins pipeline with the CF-Plugin. The manifest.yml works fine if I´m using the locally installed CF-client.

Problem: I`m getting an CF-UnprocessableEntity exception by using the CF-Plugin in Jenkins as the following error log shows.

Related questions:

  1. Does the CF-Plugin supports to push docker images to CF via a manifest.yml?
  2. If yes, is it possible to supply a CF_DOCKER_PASSWORD for private images?

Jenkins-Pipeline:

      ... 

    stage('Deploy to CF'){
            agent {label 'master' }

            steps {
                pushToCloudFoundry(
                  target: 'https://api.cf.eu10.hana.ondemand.com',
                  organization: 'P2000958027trial_trial',
                  cloudSpace: 'dev',
                  credentialsId: 'SCP_Credentials_ID',
                  manifestChoice: [manifestFile: 'deploy/cloudfoundry/manifest.yml']
                )
            } 
        }

manifest.yml:

#local deployment syntax: CF_DOCKER_PASSWORD='DOCKER_PW' cf push -f manifest.yml

applications:
  - name: publicAppName
    instances: 1
    disk_quota: 512MB
    memory: 640MB
    docker:
        image: publicUser/publicImageName:latest
    env:
        _JAVA_OPTIONS: -Xmx512m -Xms256m
        SPRING_PROFILES_ACTIVE: prod, cloudfoundry   

  - name: privateAppName
    instances: 1
    disk_quota: 1024MB
    memory: 1024MB
    timeout: 65
    docker:
        image: privateUser/privateImageName:latest
        username: privateUser
    env:
        _JAVA_OPTIONS: -Xmx512m -Xms256m
        SPRING_PROFILES_ACTIVE: prod, swagger    

error log:

Cloud Foundry Plugin:
org.cloudfoundry.client.v2.ClientV2Exception: CF-UnprocessableEntity(10008): cannot upload bits to a docker app
    at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$0(ErrorPayloadMapper.java:46)
    at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$9(ErrorPayloadMapper.java:98)
    at reactor.core.publisher.MonoThenMap$ThenMapMain.onNext(MonoThenMap.java:120)
    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)
    at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:115)
    at reactor.core.publisher.FluxUsing$UsingFuseableSubscriber.onNext(FluxUsing.java:351)
    at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:103)
    at reactor.core.publisher.FluxPeekFuseable$PeekFuseableConditionalSubscriber.onNext(FluxPeekFuseable.java:428)
    at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:962)
    at reactor.core.publisher.MonoReduceSeed$ReduceSeedSubscriber.onComplete(MonoReduceSeed.java:150)
    at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:130)
    at reactor.ipc.netty.channel.FluxReceive.terminateReceiver(FluxReceive.java:375)
    at reactor.ipc.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:198)
    at reactor.ipc.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:338)
    at reactor.ipc.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:344)
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundComplete(HttpClientOperations.java:267)
    at reactor.ipc.netty.channel.ChannelOperations.onHandlerTerminate(ChannelOperations.java:420)
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:577)
    at reactor.ipc.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:129)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1273)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1084)
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    at java.lang.Thread.run(Thread.java:748)
    Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Assembly trace from producer [reactor.core.publisher.MonoPeek] :
    reactor.core.publisher.Mono.checkpoint(Mono.java:1400)
    org.cloudfoundry.reactor.client.v2.applications.ReactorApplicationsV2.upload(ReactorApplicationsV2.java:233)
    org.cloudfoundry.operations.applications.DefaultApplications.requestUploadApplication(DefaultApplications.java:1504)
    org.cloudfoundry.operations.applications.DefaultApplications.lambda$uploadApplicationAndWait$143(DefaultApplications.java:1712)
    reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:45)
    reactor.core.publisher.MonoThenMap.subscribe(MonoThenMap.java:59)
    reactor.core.publisher.MonoWhen$WhenCoordinator.subscribe(MonoWhen.java:178)
    reactor.core.publisher.MonoWhen.subscribe(MonoWhen.java:124)
    reactor.core.publisher.MonoThenIgnore$ThenIgnoreMain.drain(MonoThenIgnore.java:165)
    reactor.core.publisher.MonoThenIgnore.subscribe(MonoThenIgnore.java:55)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:384)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:612)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:491)
    reactor.core.publisher.FluxFlatMap$FlatMapInner.onNext(FluxFlatMap.java:916)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:947)
    reactor.core.publisher.MonoThenIgnore$ThenIgnoreMain.drain(MonoThenIgnore.java:141)
    reactor.core.publisher.MonoThenIgnore.subscribe(MonoThenIgnore.java:55)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:384)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:612)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:491)
    reactor.core.publisher.FluxFlatMap$FlatMapInner.onNext(FluxFlatMap.java:916)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:947)
    reactor.core.publisher.MonoWhen$WhenCoordinator.signal(MonoWhen.java:249)
    reactor.core.publisher.MonoWhen$WhenInner.onNext(MonoWhen.java:308)
    reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.onNext(MonoSubscribeOn.java:126)
    reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:188)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:962)
    reactor.core.publisher.MonoCollectList$MonoBufferAllSubscriber.onComplete(MonoCollectList.java:115)
    reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:245)
    reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:138)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drainAsync(FluxFlattenIterable.java:317)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drain(FluxFlattenIterable.java:616)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.onComplete(FluxFlattenIterable.java:258)
    reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:230)
    reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:230)
    reactor.core.publisher.MonoNext$NextSubscriber.onComplete(MonoNext.java:96)
    reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:77)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:235)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.ipc.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:207)
    reactor.ipc.netty.channel.FluxReceive.onInboundNext(FluxReceive.java:322)
    reactor.ipc.netty.channel.ChannelOperations.onInboundNext(ChannelOperations.java:317)
    reactor.ipc.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:592)
    reactor.ipc.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:129)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    reactor.ipc.netty.http.HttpOperations.lambda$static$3(HttpOperations.java:294)
    reactor.ipc.netty.ReactorNetty$ExtractorHandler.channelRead(ReactorNetty.java:328)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1273)
    io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1084)
    io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
    io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
    io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
    io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
    io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
    io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
Error has been observed by the following operator(s):
    |_  Mono.checkpoint(ReactorApplicationsV2.java:233)
    |_  Mono.checkpoint(DefaultApplications.java:396)

    Suppressed: reactor.core.publisher.FluxOnAssembly$AssemblySnapshotException
        at reactor.core.publisher.MonoOnAssembly.<init>(MonoOnAssembly.java:54)
        at reactor.core.publisher.Mono.checkpoint(Mono.java:1400)
        at org.cloudfoundry.operations.applications.DefaultApplications.pushManifest(DefaultApplications.java:396)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushTask.perform(CloudFoundryPushTask.java:171)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushBuilder.perform(CloudFoundryPushBuilder.java:182)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
        at hudson.security.ACL.impersonate(ACL.java:260)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more
org.cloudfoundry.client.v2.ClientV2Exception: CF-UnprocessableEntity(10008): cannot upload bits to a docker app
    at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$0(ErrorPayloadMapper.java:46)
    at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$9(ErrorPayloadMapper.java:98)
    at reactor.core.publisher.MonoThenMap$ThenMapMain.onNext(MonoThenMap.java:120)
    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)
    at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:115)
    at reactor.core.publisher.FluxUsing$UsingFuseableSubscriber.onNext(FluxUsing.java:351)
    at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:103)
    at reactor.core.publisher.FluxPeekFuseable$PeekFuseableConditionalSubscriber.onNext(FluxPeekFuseable.java:428)
    at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:962)
    at reactor.core.publisher.MonoReduceSeed$ReduceSeedSubscriber.onComplete(MonoReduceSeed.java:150)
    at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:130)
    at reactor.ipc.netty.channel.FluxReceive.terminateReceiver(FluxReceive.java:375)
    at reactor.ipc.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:198)
    at reactor.ipc.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:338)
    at reactor.ipc.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:344)
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundComplete(HttpClientOperations.java:267)
    at reactor.ipc.netty.channel.ChannelOperations.onHandlerTerminate(ChannelOperations.java:420)
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:577)
    at reactor.ipc.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:129)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1273)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1084)
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    at java.lang.Thread.run(Thread.java:748)
    Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Assembly trace from producer [reactor.core.publisher.MonoPeek] :
    reactor.core.publisher.Mono.checkpoint(Mono.java:1400)
    org.cloudfoundry.reactor.client.v2.applications.ReactorApplicationsV2.upload(ReactorApplicationsV2.java:233)
    org.cloudfoundry.operations.applications.DefaultApplications.requestUploadApplication(DefaultApplications.java:1504)
    org.cloudfoundry.operations.applications.DefaultApplications.lambda$uploadApplicationAndWait$143(DefaultApplications.java:1712)
    reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:45)
    reactor.core.publisher.MonoThenMap.subscribe(MonoThenMap.java:59)
    reactor.core.publisher.MonoWhen$WhenCoordinator.subscribe(MonoWhen.java:178)
    reactor.core.publisher.MonoWhen.subscribe(MonoWhen.java:124)
    reactor.core.publisher.MonoThenIgnore$ThenIgnoreMain.drain(MonoThenIgnore.java:165)
    reactor.core.publisher.MonoThenIgnore.subscribe(MonoThenIgnore.java:55)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:384)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:612)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:491)
    reactor.core.publisher.FluxFlatMap$FlatMapInner.onNext(FluxFlatMap.java:916)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:947)
    reactor.core.publisher.MonoThenIgnore$ThenIgnoreMain.drain(MonoThenIgnore.java:141)
    reactor.core.publisher.MonoThenIgnore.subscribe(MonoThenIgnore.java:55)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:384)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:612)
    reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:491)
    reactor.core.publisher.FluxFlatMap$FlatMapInner.onNext(FluxFlatMap.java:916)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:947)
    reactor.core.publisher.MonoWhen$WhenCoordinator.signal(MonoWhen.java:249)
    reactor.core.publisher.MonoWhen$WhenInner.onNext(MonoWhen.java:308)
    reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.onNext(MonoSubscribeOn.java:126)
    reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:188)
    reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:962)
    reactor.core.publisher.MonoCollectList$MonoBufferAllSubscriber.onComplete(MonoCollectList.java:115)
    reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:245)
    reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:138)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drainAsync(FluxFlattenIterable.java:317)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drain(FluxFlattenIterable.java:616)
    reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.onComplete(FluxFlattenIterable.java:258)
    reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:230)
    reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:230)
    reactor.core.publisher.MonoNext$NextSubscriber.onComplete(MonoNext.java:96)
    reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:77)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:235)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    reactor.ipc.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:207)
    reactor.ipc.netty.channel.FluxReceive.onInboundNext(FluxReceive.java:322)
    reactor.ipc.netty.channel.ChannelOperations.onInboundNext(ChannelOperations.java:317)
    reactor.ipc.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:592)
    reactor.ipc.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:129)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    reactor.ipc.netty.http.HttpOperations.lambda$static$3(HttpOperations.java:294)
    reactor.ipc.netty.ReactorNetty$ExtractorHandler.channelRead(ReactorNetty.java:328)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1273)
    io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1084)
    io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
    io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
    io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
    io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
    io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
    io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
Error has been observed by the following operator(s):
    |_  Mono.checkpoint(ReactorApplicationsV2.java:233)
    |_  Mono.checkpoint(DefaultApplications.java:396)

    Suppressed: reactor.core.publisher.FluxOnAssembly$AssemblySnapshotException
        at reactor.core.publisher.MonoOnAssembly.<init>(MonoOnAssembly.java:54)
        at reactor.core.publisher.Mono.checkpoint(Mono.java:1400)
        at org.cloudfoundry.operations.applications.DefaultApplications.pushManifest(DefaultApplications.java:396)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushTask.perform(CloudFoundryPushTask.java:171)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushBuilder.perform(CloudFoundryPushBuilder.java:182)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
        at hudson.security.ACL.impersonate(ACL.java:260)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more
    Suppressed: java.lang.Exception: #block terminated with an error
        at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:86)
        at reactor.core.publisher.Mono.block(Mono.java:1301)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushTask.perform(CloudFoundryPushTask.java:174)
        at com.hpe.cloudfoundryjenkins.CloudFoundryPushBuilder.perform(CloudFoundryPushBuilder.java:182)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
        at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
        at hudson.security.ACL.impersonate(ACL.java:260)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more

ErrorStackTrace_CFPlugin.txt

manifest.txt

JenkinsPipeline_CloudFoundry.txt

W0lfw00d commented 5 years ago

I'm having the same issue. 😞 It would be great if this could be fixed.