Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Search Build Index Status Response Format Change Cause Jenkins Job failed #26

Description

@kongyi-ibm

Since Search Index status response format change, the jenkins job for build search index will failed with error:

Traceback (most recent call last):
File "/commerce-devops-utilities/scripts/commerce/triggerBuildIndex.py", line 50, in
if int(status) == 0:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'dict'

This issue will happen on 9.0.1.x

The fix is to change the scripts in wc-devops-utilities/scripts/commerce/triggerBuildIndex.py at line 47

from

status = progress['status']

to

status = progress['status']['status']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions