-
From docker job executor it was defined registry_url && username && password
so i just don't wanna defined the same variable on scirpt repeatly
set -e private_repo=192.168.x.x:yyyy docker tag xxx/yy $private_repo/xxx/yy docker push $private_repo/xx/yy -
This is supported. Will make this info available as variable in future releases.
-
Name Previous Value Current Value Type
Discussion
New Feature
-
Previous Value Current Value [QUESTION] About Job Executor Variable Support
Able to access job executor registry login via variable
-
Thanks for reply, BTW docs about variable could be more completly. 🙁 maybe i just not found it where could explain that like
@build_number@,@ref,@commit_hash, etc(know from hint complete) -
Thanks for the feedback.
@build_number@represents the number you see for a build in the title line.@ref@represents git reference the build is fired off, for instanceref/heads/mainrepresents the main branch...commit_hashrepresents the git commit hash the build is currently running against.Will find appropriate place to doc them though.
-
Refer to this doc for a complete list of variables: https://code.onedev.io/projects/162/blob/main/pages/job-variables.md
-
Previous Value Current Value Open
Closed
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee |
When define Docker Registry Login on Docker#Job Executor, it was have any variables to fetch registry_url? such as
@executor_registry_url@when i wrote script like below