This happens when an autoland fails (even when the URLs are real):
$ autoland -r FAILED -v 123 -m https://code.launchpad.net/~u/x/+git/y/+merge/123
DEBUG: fetching repo: ~u/x/+git/y/
DEBUG: Branch https://code.launchpad.net/~u/x/+git/y/ does not exist
DEBUG: Previous test failed. Failing autolanding.
Traceback (most recent call last):
File "/home/jenkins/.local/bin/autoland", line 11, in <module>
load_entry_point('jenkins-launchpad-plugin==0.1', 'console_scripts', 'autoland')()
File "/home/jenkins/.local/lib/python2.7/site-packages/jenkins_launchpad_plugin-0.1-py2.7.egg/jlp/commands/autoland.py", line 435, in autoland
LaunchpadVote.NEEDS_FIXING)
File "/home/jenkins/.local/lib/python2.7/site-packages/jenkins_launchpad_plugin-0.1-py2.7.egg/jlp/commands/autoland.py", line 86, in change_mp_status
args['merge_proposal'])
File "/home/jenkins/.local/lib/python2.7/site-packages/jenkins_launchpad_plugin-0.1-py2.7.egg/jlp/launchpadutils.py", line 410, in get_template_args
build_urls = jenkinsutils.get_executed_builds(jenkins, build_url)
File "/home/jenkins/.local/lib/python2.7/site-packages/jenkins_launchpad_plugin-0.1-py2.7.egg/jlp/jenkinsutils.py", line 461, in get_executed_builds
jenkins_url, job_name, build_number = parse_jenkins_url(url)
File "/home/jenkins/.local/lib/python2.7/site-packages/jenkins_launchpad_plugin-0.1-py2.7.egg/jlp/jenkinsutils.py", line 442, in parse_jenkins_url
build_number_match = re.search('(.*/)(.*)/([0-9]+)/?$', url)
File "/usr/lib/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or buffer
With the Python3 version of jlp:
$ autoland -r FAILED -v 123 -m https://code.launchpad.net/~u/x/+git/y/+merge/123
DEBUG: fetching repo: ~u/x/+git/y/
DEBUG: Branch https://code.launchpad.net/~u/x/+git/y/ does not exist
DEBUG: Previous test failed. Failing autolanding.
Traceback (most recent call last):
File "/home/paride/.local/bin/autoland", line 11, in <module>
load_entry_point('jenkins-launchpad-plugin==0.0.0', 'console_scripts', 'autoland')()
File "/home/paride/.local/lib/python3.7/site-packages/jenkins_launchpad_plugin-0.0.0-py3.7.egg/jlp/commands/autoland.py", line 435, in autoland
LaunchpadVote.NEEDS_FIXING)
File "/home/paride/.local/lib/python3.7/site-packages/jenkins_launchpad_plugin-0.0.0-py3.7.egg/jlp/commands/autoland.py", line 86, in change_mp_status
args['merge_proposal'])
File "/home/paride/.local/lib/python3.7/site-packages/jenkins_launchpad_plugin-0.0.0-py3.7.egg/jlp/launchpadutils.py", line 410, in get_template_args
build_urls = jenkinsutils.get_executed_builds(jenkins, build_url)
File "/home/paride/.local/lib/python3.7/site-packages/jenkins_launchpad_plugin-0.0.0-py3.7.egg/jlp/jenkinsutils.py", line 459, in get_executed_builds
jenkins_url, job_name, build_number = parse_jenkins_url(url)
File "/home/paride/.local/lib/python3.7/site-packages/jenkins_launchpad_plugin-0.0.0-py3.7.egg/jlp/jenkinsutils.py", line 440, in parse_jenkins_url
build_number_match = re.search('(.*/)(.*)/([0-9]+)/?$', url)
File "/usr/lib/python3.7/re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object