Skip to content

Instantly share code, notes, and snippets.

@JayDoubleu
Created June 28, 2023 13:13
Show Gist options
  • Save JayDoubleu/287f0e9276eb30a785e8817fb6959d81 to your computer and use it in GitHub Desktop.
Save JayDoubleu/287f0e9276eb30a785e8817fb6959d81 to your computer and use it in GitHub Desktop.
- task: Bash@3
displayName: Retrieve current agent public IP
inputs:
targetType: 'inline'
script: |
echo "##vso[task.setvariable variable=AGENT_IP]$(curl -s http://ipinfo.io/json| jq -r '.ip')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment