pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
859 stars 485 forks source link

How to enable keep this build forever and edit build information (display name) #645

Closed arun0910 closed 5 years ago

arun0910 commented 6 years ago
ISSUE TYPE
Jenkinsapi VERSION

0.3.6

Jenkins VERSION

2

SUMMARY
  1. Get the latest build and enable keep this build forever
  2. edit the build information - display name and description
    EXPECTED RESULTS
ACTUAL RESULTS

couldn't figure out how to achieve the above scenarios

USEFUL INFORMATION
jenkins_url = 'http://localhost:8080' + self.source_folder_path + self.src_folder
        try:
            # We need to create a crumb for the request first
            crumb = CrumbRequester(username=self.username, password=self.password, baseurl=jenkins_url)
            # Now use the crumb to authenticate against Jenkins
            server = Jenkins(jenkins_url, username=self.username, password=self.password, requester=crumb)
            return server
        except Exception as e:
            logging.info("Method - get_server_instance failed due to - %s", e)
            sys.exit(1)
apaandiyan commented 6 years ago

can the above scenarios be achieved through api?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

Closed due to inactivity