-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fixed dependency path #14228
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
base: main
Are you sure you want to change the base?
Fixed dependency path #14228
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -196,7 +196,7 @@ jobs: | |||||
| - job: B | ||||||
| dependsOn: A | ||||||
| variables: | ||||||
| myVarFromJobA: $[ dependencies.A.outputs['passOutput.myOutputVar'] ] | ||||||
| myVarFromJobA: $[ dependencies.A.outputs['A.passOutput.myOutputVar'] ] | ||||||
| steps: | ||||||
| - bash: | | ||||||
| echo $(myVarFromJobA) | ||||||
|
|
@@ -227,7 +227,7 @@ jobs: | |||||
| - job: B | ||||||
| dependsOn: A | ||||||
| variables: | ||||||
| myVarFromJobA: $[ dependencies.A.outputs['passOutput.myOutputVar'] ] | ||||||
| myVarFromJobA: $[ dependencies.A.outputs['A.passOutput.myOutputVar'] ] | ||||||
|
||||||
| myVarFromJobA: $[ dependencies.A.outputs['A.passOutput.myOutputVar'] ] | |
| myVarFromJobA: $[ dependencies.A.outputs['passOutput.myOutputVar'] ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
dependencies.<job>.outputs[...]key for job-to-job dependencies within the same stage is documented elsewhere as'<step-name>.<variable-name>'(no job-name prefix). Using['A.passOutput.myOutputVar']here appears inconsistent withexpressions.mdandvariables.mdexamples, and is likely to produce a lookup miss at runtime. Consider reverting to['passOutput.myOutputVar'], or (if the intent is cross-stage) switch the example tostageDependenciesand include the stage/job qualifiers accordingly.