method wipeout_job_workspace doesn't work on my side

Asked by april

Hello,

I am trying to use the method wipeout_job_workspace(name) from a python script but this is what is printed :

server.wipeout_job_workspace('REPO_INIT_JOB')
TypeError: 'bytes' object does not support item assignment

/* This is my script*/
import requests
import jenkins
from jenkinsapi.jenkins import Jenkins

requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)

server=jenkins.Jenkins(url,name,api_key)
server._session.verify = False
list=server.get_all_jobs()
server.wipeout_job_workspace('REPO_INIT_JOB')

The first request is working fine because I can see all my job from Jenkins.

I will thank you in advance for your help/answers.

April

Question information

Language:
English Edit question
Status:
Expired
For:
Python Jenkins Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.