# Question about build stages & jobs

**URL:** <https://travis-ci.community/t/question-about-build-stages-jobs/14244>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** build-env, build-stages\
**Created:** [April 15, 2024, 10:09am UTC](https://travis-ci.community/t/question-about-build-stages-jobs/14244 "2024-04-15T10:09:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttodua](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ttodua/32/9189_2.png) [@ttodua](https://travis-ci.community/u/ttodua)\
**Post date:** [April 15, 2024, 10:09am UTC](https://travis-ci.community/t/question-about-build-stages-jobs/14244/1 "2024-04-15T10:09:12Z")

</div>

I have such travis.yml, where I have two `stages`. in first stage, i have two jobs (each of them takes around i.e. 10 minutes):

```auto
env:
  jobs:
    - JOBNAME=A1 <----- here I run tests
    - JOBNAME=A2 <----- here I generate other files
jobs:
  include:
    - stage: final_stage
      script:
        - if ["$JOBNAME" = "A2"]; then
          ...
          fi

```

What I want is to run those two jobs in parallel, but then, if all of them finishes successfully, i want a build stage with the logic to trigger only for “A2” job, because in that job, the needed files/artefacts are generated, which I want to push generated files on cloud.  
does my travis file look correct?
