tag:help.appveyor.com,2012-11-13:/discussions/questions/1991-passing-global-variable-between-jobsAppVeyor: Discussion 2018-05-17T09:04:33Ztag:help.appveyor.com,2012-11-13:Comment/387568442015-12-22T23:39:06Z2015-12-22T23:39:06ZPassing global variable between jobs?<div><p>Could you please give me a real-world scenario for these
requirements?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/387568442015-12-23T04:13:23Z2015-12-23T04:13:23ZPassing global variable between jobs?<div><p>We are using those steps as some kind of QA</p>
<pre>
<code># 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 .</code>
</pre>
<p>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.</p></div>zosrothkotag:help.appveyor.com,2012-11-13:Comment/387568442015-12-23T22:07:23Z2015-12-23T22:07:23ZPassing global variable between jobs?<div><p>How would you know which job should run that
script/sequence?</p>
<p>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.</p></div>Feodor Fitsner