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

The jenkins job checkbox "become" does not persist the value #238

Open
wildcoder5 opened this issue Jul 30, 2024 · 2 comments
Open

The jenkins job checkbox "become" does not persist the value #238

wildcoder5 opened this issue Jul 30, 2024 · 2 comments
Labels

Comments

@wildcoder5
Copy link

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)?

debian 11

ansible 2.10.8
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

Reproduction steps

Since the -s --sudo option is removed I needed to toggle the become flag. When toggling and hitting save, it is never persisted. When I open the job config again, it is not toggled. Nothing useful in journalctl -u jenkins -f.

Bug started happening after upgrade from debian 10 to 11.

Expected Results

yes

Actual Results

yes

Anything else?

No response

Are you interested in contributing a fix?

No response

@wildcoder5 wildcoder5 added the bug label Jul 30, 2024
@wildcoder5
Copy link
Author

related: #17

@wildcoder5
Copy link
Author

here is part of the POSTed json which may or may not be helpful:

   "builder" : {
      "$class" : "org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder",
      "additionalParameters" : "",
      "ansibleName" : "ansible+2.7.2",
      "become" : true,
      "becomeUser" : "",
      "checkMode" : false,
      "colorizedOutput" : false,
      "credentialsId" : "48c812d1-6b75-437f-9388-d426c1b62728",
      "disableHostKeyChecking" : true,
      "forks" : "5",
      "includeUser" : [
         "false",
         "false"
      ],
      "inventory" : {
         "$class" : "org.jenkinsci.plugins.ansible.InventoryPath",
         "path" : "${WORKSPACE}/all-machines",
         "stapler-class" : "org.jenkinsci.plugins.ansible.InventoryPath",
         "value" : "1"
      },
      "limit" : "",
      "playbook" : "${WORKSPACE}/dev_app_v3.yml",
      "skippedTags" : "",
      "stapler-class" : "org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder",
      "startAtTask" : "",
      "sudo" : false,
      "sudoUser" : "",
      "tags" : "admin-frontend",
      "unbufferedOutput" : true,
      "vaultCredentialsId" : "",
      "vaultTmpPath" : ""
   },

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

1 participant