Updating an existing pipeline schedule variable · python-gitlab/python-gitlab · Discussion #3063 · GitHub
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
-
Heading
-
Bold
-
Italic
-
Quote
-
Code
-
Link
-
Numbered list
-
Unordered list
-
Task list
-
Attach files
-
Mention
-
Reference
👍
1
reacted with thumbs up emoji
👎
1
reacted with thumbs down emoji
😄
1
reacted with laugh emoji
🎉
1
reacted with hooray emoji
😕
1
reacted with confused emoji
❤️
1
reacted with heart emoji
🚀
1
reacted with rocket emoji
👀
1
reacted with eyes emoji
Footer
You can’t perform that action at this time.
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation only covers updating a schedule variable that was created. The only returned from create is
is a ProjectPipelineScheduleVariable whereas schedule.attributes["variables"] returns a list containing dicts (see screenshot).
schedule.variables.create and schedule.variables.delete can be used directly but I'm unable to use schedule.variables.update directly.
What is the correct way? Also, will update fail if the variable does not exist or is it simply created?
Beta Was this translation helpful? Give feedback.