Hi all,
I was trying to test the Bitbucket pipeline to send some notification to the OpsGenie using the API key to make sure my integration is working. I created a API key for the OpsGenie integration as mentioned(https://docs.opsgenie.com/docs/api-integration) and pass the same in the pipe as below. But when i ran the pipeline I got the below error. Can anyone help in this regard how to fix it?
rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/python:3.5.1": failed to unpack image on snapshotter overlayfs: failed to extract layer sha256:f5decf3b205f716ea71eadf4359dbdb2383b509021d18ef717b9518171e6f0fb: failed to unmount /var/lib/containerd/tmpmounts/containerd-mount615279362: failed to unmount target /var/lib/containerd/tmpmounts/containerd-mount615279362: device or resource busy: unknown
https://bitbucket.org/atlassian/opsgenie-send-alert/src/master/
bitbucket-pipelines.yml
image:
name: python:3.5.1
setup: &setup
step:
name: Installation of Pre-req
script:
- apt-get update # required to install zip
- apt-get install -y zip # required for packaging up the application
- pip install boto3==1.3.0 # required for codedeploy_deploy.py
alert-test: &alert-test
step:
name: Testing Send Alert email through OpsGenie
script:
- pipe: "atlassian/opsgenie-send-alert:0.4.2"
variables:
DESCRIPTION: "An Opsgenie alert sent from Bitbucket Pipelines"
GENIE_KEY: "345cc6b1-ce3a-4ff7-b5d5-e8210c904d9b"
MESSAGE: "Hello, world!"
PRIORITY: P1
SOURCE: "Bitbucket Pipelines"
pipelines:
branches:
master:
- <<: *setup
- <<: *alert-test
qa-*:
- <<: *setup
- <<: *alert-test
I've seen these popping up more than usual, recently.
Re-running normally works for me. It's an internal issue with the pipeline step itself
Thank you. yes rerunning it worked. But it pops up after rerunning the pipe couple of times intermittently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After this I am getting another issue:
1. Even if I am passing GENIE_KEY(hardcoded value) the pipe is not accepting it and fails with below error even if I pass the GENIE_KEY : 'API-KEY'
c497cb76b295: Pull complete
1dff4a5e6b7e: Pull complete
1ec9a3138c57: Pull complete
Digest: sha256:aeb7b5cb945574cc2332f73ef19950142a3f1352e8fada540d7cb4c883545f2a
Status: Downloaded newer image for bitbucketpipelines/opsgenie-send-alert:0.4.2
/pipe.sh: line 23: GENIE_KEY: GENIE_KEY variable missing.
I also tried setting up a repository variable as GENIE_KEY in pipeline and pass the GENIE_KEY.
test: &test
step:
name: Testing Send Alert email through OpsGenie
script:
- pipe: "atlassian/opsgenie-send-alert:0.4.2"
variables:
GENIE_KEY: '$GENIE_KEY'
MESSAGE: 'Hello, world!'
DESCRIPTION: 'An OpsGenie Alert sent from Bitbucket Pipelines'
PRIORITY: P4
SOURCE: 'Bitbucket Pipelines'
Looks like the GENIE_KEY is not getting passed to the opsgenie-send-alert pipe. Can anyone please help me in this regard?
Regards
Jamie
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.