Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to use azureVMagent in pipeline script #477

Open
jitkuthe opened this issue Nov 1, 2023 · 1 comment
Open

not able to use azureVMagent in pipeline script #477

jitkuthe opened this issue Nov 1, 2023 · 1 comment
Labels

Comments

@jitkuthe
Copy link

jitkuthe commented Nov 1, 2023

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Centos7 / RHEL

Reproduction steps

This is my sample pipeline where Iam using my existing vm and wanted to create a jenkins slave
azureVmAgent(
azureCredentialsId: azureCredentials,
azureVmName: azureVmName,
azureVmResourceGroup: azureVmResourceGroup,
azureVmLocation: azureVmLocation,
azureVmImage: azureVmImage,
azureVmSize: azureVmSize,

Expected Results

should have to add exixting vm as jenkins slave.

Actual Results

[Pipeline] Start of Pipeline
[Pipeline] stage
[Pipeline] { (Launch Azure VM)
[Pipeline] script
[Pipeline] {
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 188e61cb-9ff8-4b1c-93d7-83ffe839bd3d
java.lang.NoSuchMethodError: No such DSL method 'azureVmAgent' found among steps [acceptGitLabMR, addGitLabMRComment, archive, bat, build,

Anything else?

No response

@jitkuthe jitkuthe added the bug label Nov 1, 2023
@timja
Copy link
Member

timja commented Nov 1, 2023

Why do you want to do this?

I don't think we want this in this plugin, and it's not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants