Platformio Jira CircleCi

Hi community…

I have created this yaml file for compiling an iot project with circleci and platformio.

version: 2.1
orbs:
  python: circleci/python@1.4.0

jobs:
  build:
    executor: python/default
    steps:
      - checkout # checkout source code to working directory
      - run:
          name: Install PlatformIO
          command: pip install --upgrade platformio
      - run:
          name: Compile Project
          command: pio run
      - run:
          name: Creating Dummy Artifacts
          command: |
            cd .pio/build/esp32dev
            echo "firmare.bin" > /tmp/art-1;
            mkdir /tmp/artifacts;
            echo "my artifact files in a dir" > /tmp/artifacts/art-2;
      - store_artifacts:
          path: /tmp/art-1
          destination: artifact-file
      - store_artifacts:
          path: /tmp/artifacts

workflows:
  main:
    jobs:
      - build

The repository is in bitbucket… since bitbucket is connected with jira i would like to show in jira tickets the status of the final buid.
I really don’t know how to do because the example i i have found are using a docker image,

any idea about how to change my file ?

Thanks a lot

Hi @simogaspa84 , and welcome to the CircleCI community!

According to the config.yml you shared, your build is also using a docker image. It’s simply getting the declaration of the executor from the circleci/python you’re leveraging

This is the definition of the python/default executor from the orb:

description: The official CircleCI CIMG Python Docker image.
docker:
  - image: 'cimg/python:<< parameters.tag >>'
parameters:
  tag:
    default: '3.8'
    description: The `cimg/python` Docker image version tag.
    type: string

As you already found out, you would indeed need to use the Jira integration.

This means:

  • Setting up the CircleCI-Jira integration
  • Referencing the circleci/jira orb in your configuration file
orbs:
  python: circleci/python@1.4.0
  circleci/jira@1.3.1
  • Calling the jira/notify command as a step