Passing global variable between jobs?

Hi

Is there a way to pass global variables between jobs?

Is there a way to run a script only once within a build, and not for each jobs?

  1. Could you please give me a real-world scenario for these requirements?

  2. We are using those steps as some kind of QA

    # search for TODO within source tree
     grep -r TODO *
    # search for FIXME within source tree
      grep -r FIXME *
    # search for HACK within source tree
      grep -r HACK *
    # some statistics about the code base
      script: sloccount .
    

    The results are the same whatever matrix row is eun. So this feature will allow to reduce the overall time of execution by running those steps only once.

  3. How would you know which job should run that script/sequence?

    If you are not going to have multiple jobs under your account to run jobs in parallel I'd probably replace matrix with a custom PowerShell script building those combinations and running as a single job/build.

  4. zosrothko closed this discussion on 17 May, 2018 09:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac