Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning jobs to pipeline engine; buildinfo result failure #17858

Closed
arbermarleku opened this issue Feb 5, 2019 · 2 comments
Closed

Assigning jobs to pipeline engine; buildinfo result failure #17858

arbermarleku opened this issue Feb 5, 2019 · 2 comments

Comments

@arbermarleku
Copy link

arbermarleku commented Feb 5, 2019

In my YAML scritp i dont have the {} like like users had in this url :
#17120

My Yml is down bellow
Can you give me a hint what i am doing wrong

stages:
- name: Build Backend
  steps:
  - runScriptConfig:
      image: frekele/gradle
      shellScript: gradle :api:shadowJar
    when:
      branch:
        include:
        - api*
      event:
        include:
        - tag
  - runScriptConfig:
      image: frekele/gradle
      shellScript: gradle :collector:shadowJar
    when:
      branch:
        include:
        - collector*
      event:
        include:
        - tag
  - runScriptConfig:
      image: frekele/gradle
      shellScript: gradle :consumer:shadowJar
    when:
      branch:
        include:
        - consumer*
      event:
        include:
        - tag
  - runScriptConfig:
      image: frekele/gradle
      shellScript: gradle :sync:shadowJar
    when:
      branch:
        include:
        - sync*
      event:
        include:
        - tag
- name: Publish to QA
  steps:
  - publishImageConfig:
      dockerfilePath: ./k8s/api/qa/Dockerfile
      buildContext: .
      tag: myproject-api:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - api-qa*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/collector/qa/Dockerfile
      buildContext: .
      tag: myproject-collector:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - collector-qa*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/consumer/qa/Dockerfile
      buildContext: .
      tag: myproject-consumer:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - consumer-qa*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/sync/qa/Dockerfile
      buildContext: .
      tag: myproject-sync:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - sync-qa*
      event:
        include:
        - tag
- name: Publish to Staging
  steps:
  - publishImageConfig:
      dockerfilePath: ./k8s/api/stagign/Dockerfile
      buildContext: .
      tag: myproject-api:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - api-staging*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/collector/stagign/Dockerfile
      buildContext: .
      tag: myproject-collector:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - collector-staging*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/consumer/stagign/Dockerfile
      buildContext: .
      tag: myproject-consumer:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - consumer-staging*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/sync/stagign/Dockerfile
      buildContext: .
      tag: myproject-sync:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - sync-staging*
      event:
        include:
        - tag
- name: Publish to Production
  steps:
  - publishImageConfig:
      dockerfilePath: ./k8s/api/prod/Dockerfile
      buildContext: .
      tag: myproject-api:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - api-production*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/collector/prod/Dockerfile
      buildContext: .
      tag: myproject-collector:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - collector-production*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/consumer/prod/Dockerfile
      buildContext: .
      tag: myproject-consumer:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - consumer-production*
      event:
        include:
        - tag
  - publishImageConfig:
      dockerfilePath: ./k8s/sync/prod/Dockerfile
      buildContext: .
      tag: myproject-sync:${CICD_GIT_COMMIT}.${CICD_GIT_BRANCH}.${CICD_EXECUTION_SEQUENCE}
      pushRemote: true
      registry: hub.docker.com
    when:
      branch:
        include:
        - sync-production*
      event:
        include:
        - tag
- name: Deploy to QA
  steps:
  - applyYamlConfig:
      path: .k8s/api/qa/deployment-qa.yaml
    when:
      branch:
        include:
        - api-qa*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/collector/qa/deployment-qa.yaml
    when:
      branch:
        include:
        - collector-qa*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/consumer/qa/deployment-qa.yaml
    when:
      branch:
        include:
        - consumer-qa*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/sync/qa/deployment-qa.yaml
    when:
      branch:
        include:
        - sync-qa*
      event:
        include:
        - tag
- name: Deploy to Staging
  steps:
  - applyYamlConfig:
      path: .k8s/api/stagign/deployment-staging.yaml
    when:
      branch:
        include:
        - api-staging*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/collector/stagign/deployment-staging.yaml
    when:
      branch:
        include:
        - collector-staging*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/consumer/stagign/deployment-staging.yaml
    when:
      branch:
        include:
        - consumer-staging*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: .k8s/sync/stagign/deployment-staging.yaml
    when:
      branch:
        include:
        - sync-staging*
      event:
        include:
        - tag
- name: Deploy to Production
  steps:
  - applyYamlConfig:
      path: k8s/api/prod/deployment-prod.yaml
    when:
      branch:
        include:
        - api-production*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: k8s/collector/prod/deployment-prod.yaml
    when:
      branch:
        include:
        - collector-production*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: k8s/consumer/prod/deployment-prod.yaml
    when:
      branch:
        include:
        - consumer-production*
      event:
        include:
        - tag
  - applyYamlConfig:
      path: k8s/sync/prod/deployment-prod.yaml
    when:
      branch:
        include:
        - sync-production*
      event:
        include:
        - tag

Originally posted by @arbermarleku in #17120 (comment)

@arbermarleku
Copy link
Author

I think this bug is related with number of lines on your YAML.
The moment that i comment some of the steps the pipelines just runs like a boss

@stale
Copy link

stale bot commented Jul 11, 2021

This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions.

@stale stale bot added the status/stale label Jul 11, 2021
@stale stale bot closed this as completed Jul 25, 2021
@zube zube bot removed the [zube]: Done label Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants