{"action":"created","issue":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/883","repository_url":"https://api.github.com/repos/spinnaker/spinnaker","labels_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/883/comments","events_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/883/events","html_url":"https://github.com/spinnaker/spinnaker/issues/883","id":153782217,"number":883,"title":"Documentation about available expressions variables","user":{"login":"gbougeard","id":728814,"avatar_url":"https://avatars.githubusercontent.com/u/728814?v=3","gravatar_id":"","url":"https://api.github.com/users/gbougeard","html_url":"https://github.com/gbougeard","followers_url":"https://api.github.com/users/gbougeard/followers","following_url":"https://api.github.com/users/gbougeard/following{/other_user}","gists_url":"https://api.github.com/users/gbougeard/gists{/gist_id}","starred_url":"https://api.github.com/users/gbougeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbougeard/subscriptions","organizations_url":"https://api.github.com/users/gbougeard/orgs","repos_url":"https://api.github.com/users/gbougeard/repos","events_url":"https://api.github.com/users/gbougeard/events{/privacy}","received_events_url":"https://api.github.com/users/gbougeard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spinnaker/spinnaker/labels/docs","name":"docs","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T13:57:00Z","updated_at":"2016-05-10T15:19:14Z","closed_at":null,"body":"*Title*\r\n\r\nDocumentation about available expressions variables\r\n\r\n*Cloud Provider*\r\n\r\nN/A\r\n\r\n*Environment*\r\n\r\nI'm running Spinnaker through docker-compose\r\n\r\n*Feature Area*\r\n\r\n Pipelines, UI\r\n\r\n*Description*\r\n\r\nI'm trying to implement a simple pipeline with a Manual Judgement then a Check Preconditions.\r\nI can't figure out how to retrieve the selected input in the Check Preconditions.\r\n\r\nThe tooltip on the judgement value (when editing the Manual Judgement) is not really handy : it's not possible to select and copy the example.\r\nHowever I tried to set-up the Check Preconditions using what specified in the tooltip `execution.stages[n].context.judgmentInput==\"GO\"` it does not do what I think. I do not also know if I have to replace the `n` value in the `stages[n]` (and if I have, by which value?) or if the whole expression need to be enclosed in `${}` (not precised in the tooltip).\r\n\r\nThe list of all available expressions/variables in the documentation would be a first step.\r\nThe perfection would be a kind of syntax highlighting and validation (as it's done in the groovy console in Jenkins for example).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/comments/218191190","html_url":"https://github.com/spinnaker/spinnaker/issues/883#issuecomment-218191190","issue_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/883","id":218191190,"user":{"login":"gbougeard","id":728814,"avatar_url":"https://avatars.githubusercontent.com/u/728814?v=3","gravatar_id":"","url":"https://api.github.com/users/gbougeard","html_url":"https://github.com/gbougeard","followers_url":"https://api.github.com/users/gbougeard/followers","following_url":"https://api.github.com/users/gbougeard/following{/other_user}","gists_url":"https://api.github.com/users/gbougeard/gists{/gist_id}","starred_url":"https://api.github.com/users/gbougeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbougeard/subscriptions","organizations_url":"https://api.github.com/users/gbougeard/orgs","repos_url":"https://api.github.com/users/gbougeard/repos","events_url":"https://api.github.com/users/gbougeard/events{/privacy}","received_events_url":"https://api.github.com/users/gbougeard/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T15:19:14Z","updated_at":"2016-05-10T15:19:14Z","body":"I finally found this file in the slack archive https://slack-files.com/files-pri-safe/T091CRSGH-F0R2B2KG8/templated_pipelines_in_spinnaker_-_google_docs.pdf and figured out to have a simple pipeline with a `Manual Judgment` followed by 2 forked `Check Preconditions` stages (depending on the selected value in the `Manual Judgment`) .\r\nThe expression I used : `execution.stages[1].context.judgmentInput==\"value1\"` where `value1` is a possible value from the `Manual Judgment` stage. \r\nThe `execution.stages[1]` is relative to the first stage of the pipeline (if I well understood, the `Configuration` stage of a pipeline might be the `stages[0]`). If it was possible to use ids instead of index to refer to a specific stage it would be awesome :)  "}}