Hello,
I ran into an error when try to deploy to an ec2 instance via pipe
atlassian/aws-code-deploy:0.2.1.
On the AWS side the deployment succeeded and in the pipelines log it seems it is also good.
Because it failed is only the parsing of the return json:
{
"deploymentId": "d-S1C8Y31VY"
}
++ jq --raw-output .deploymentId
parse error: Invalid numeric literal at line 1, column 11
+ deployment_id=
Is it a jq error? Can you help me with this?
My variables:
variables:
AWS_ACCESS_KEY_ID: $AWS_CODEDEPLOYUSER_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_CODEDEPLOYUSER_SECRET_KEY
AWS_DEFAULT_REGION: $AWS_DEPLOY_REGION
APPLICATION_NAME: 'backend-test'
COMMAND: 'deploy'
DEBUG: 'true'
VERSION_LABEL: 'my_app.zip'
DEPLOYMENT_GROUP: $AWS_TEST_DEPLOY_GROUP
S3_BUCKET: $AWS_CODEDEPLOY_S3_BUCKET
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
WAIT: 'false'
Thanks in advance,
Hi Gabor. There is a bug in the pipe that causes jq to crash with DEBUG variable is set to true. Disabling the DEBUG parameter should solve the issue until the bug is fixed.
Thank you @Alexander Zhukov . We also found this bug and fixed with remove debug mode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.