I’m following this article regarding to the integration of bitbucket pipelines with octopus. But in the part of producing the build information I’m not able to succeed.
The code related to the pipeline is the following one:
export VERSION=1.0.$BITBUCKET_BUILD_NUMBER
octo pack --basePath=./dist --id $BITBUCKET_REPO_SLUG-$BITBUCKET_BRANCH --version $VERSION --outFolder ./out --format zip
octo push --package ./out/$BITBUCKET_REPO_SLUG-$BITBUCKET_BRANCH.$VERSION.zip --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEY --debug
/bin/sh create-build-info.sh $BITBUCKET_REPO_OWNER $BITBUCKET_REPO_SLUG $BITBUCKET_BUILD_NUMBER $BITBUCKET_COMMIT $BITBUCKET_BRANCH $BITBUCKET_GIT_HTTP_ORIGIN
octo build-information --package-id $BITBUCKET_REPO_SLUG-$BITBUCKET_BRANCH --logLevel=verbose --version $VERSION --file=octopus.buildinfo --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEY
octo create-release --project Royaltyflush --server $OCTOPUS_SERVER
And the error is
+ octo build-information --package-id $BITBUCKET_REPO_SLUG-$BITBUCKET_BRANCH --logLevel=verbose --version $VERSION --file=octopus.buildinfo --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEY
Octopus Deploy Command Line Tool, version 6.17.3
``
Detected automation environment: "BitBucket"
DispatchRequest: GET https://royaltyflush.octopus.app/api
DispatchRequest: GET https://royaltyflush.octopus.app/api
DispatchRequest: GET https://royaltyflush.octopus.app/api
DispatchRequest: GET https://royaltyflush.octopus.app/api/spaces
Space name unspecified, process will run in the default space context
Handshaking with Octopus Server: https://royaltyflush.octopus.app
DispatchRequest: GET https://royaltyflush.octopus.app/api
Handshake successful. Octopus version: 2020.2.11; API version: 3.0.0
DispatchRequest: GET https://royaltyflush.octopus.app/api/users/me
DispatchRequest: GET https://royaltyflush.octopus.app/api/users/Users-21/spaces
DispatchRequest: GET https://royaltyflush.octopus.app/api/Spaces-1
DispatchRequest: GET https://royaltyflush.octopus.app/api/users/me
Authenticated as: admin <francisco@northmusicgroup.com>
Pushing build information for package "royaltyflush.backend-dev" version "1.0.404"...
DispatchRequest: POST https://royaltyflush.octopus.app/api/Spaces-1/build-information?overwriteMode=FailIfExists
Octopus Server returned an error: Object reference not set to an instance of an object.
Error from Octopus Server (HTTP 500 InternalServerError)
Exit code: -7
Does anybody have a clue how can I tackle this?