Skip to content

Get build version as a variable #2172

Answered by jvincze84
Kptainflintt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I don't know what do you exaclty want, but this might help you.

Create a debug task:

    - name: Debug
      debug:
        msg: "{{semaphore_vars }}"

And see what happens:

TASK [Debug] *******************************************************************
ok: [10.8.0.6] => {
"msg": {
"task_details": {
"target_version": "1.0.2",
"type": "build",
"username": "admin"
}
}
}

I think you should use {{ semaphore_vars.task_details.target_version }}.

Br,
JVincze

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fiftin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1179 on July 04, 2024 17:47.