jenkinsci / jenkinsci/azure-cli-plugin

Open and close az CLI session automatically

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
5
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi,

This would be useful from my perspective to support new construction which opens and closes az CLI session automatically for a block of commands (not only az commands)

The reality is that all scripts in my project are in bash files - and that would be cool if such a plugin can open the session before calling these scripts - and close it after. As I understand there is no such option at the moment and this plugin supports only az cli commands.

Sample:
```
withAzureCLI('servicePrincipalId') {
// az cli session is already opened
// any commands with calls to az CLI inside, including custom shell scripts
// az cli session will be closed automatically as soon as this block ends
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.