Skip to content

[Platform gateway builder] Logs are not available after the build process is completed. #2479

Description

@Krishanx92

Please select the area the issue is related to

Area/Gateway (Routing, API deployment in gateway etc.)

Please select the aspect the issue is related to

Aspect/Configuration (Config files, settings, env vars, defaults)

Suggested Improvement

Description
At the end of the build process, it says the complete build log is availabe inside the .wso2ap/.tmp/gateway-image-build-xxxxxx/logs/docker.log
But this temp directory is getting deleted after a build and cannot find the log file to identify an issue.

Steps to Reproduce
create a gateway project with a custom policy, which has some compilation error
trigger the gateway build using 'ap gateway image build'
there will be an build error but logs will be deleted after the build process

Suggestion : delete everything except the log file on error or always write the build log file to a separate location e.g.: .wso2ap/.tmp/logs/

Affected Component
API-Platform

Related Issues

No response

Metadata

Metadata

Assignees

Labels

Area/GatewayAny issues related to API deployment in gateway, routing etc.Aspect/ConfigurationConfig files, settings, env vars, defaultsType/Improvement

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions