Created
June 28, 2023 13:13
-
-
Save JayDoubleu/287f0e9276eb30a785e8817fb6959d81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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