You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.
When trying to reuse a provided OpenShift buildConfig template, they sometimes include a source.contextDir setting. In some cases (e.g. BCgov backupcontainer), the project's Dockerfile is expecting a contextDir to be used in the BuildConfig.
Context directories starting with a slash (e.g. '/docker') cause nrdk build to fail, it appears this happens in nrdk/src/pipeline-cli/openshift-client-x.ts when calling git rev-parse HEAD:${contextDir} (
When trying to reuse a provided OpenShift buildConfig template, they sometimes include a source.contextDir setting. In some cases (e.g. BCgov backupcontainer), the project's Dockerfile is expecting a contextDir to be used in the BuildConfig.
Context directories starting with a slash (e.g. '/docker') cause nrdk build to fail, it appears this happens in nrdk/src/pipeline-cli/openshift-client-x.ts when calling git rev-parse HEAD:${contextDir} (
nrdk/src/pipeline-cli/openshift-client-x.ts
Line 291 in 1b49455
The workaround is to remove the leading slash from the contextDir value in the buildConfig template.
The text was updated successfully, but these errors were encountered: