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
No matter what command is I'm getting same result:
Starting: occmd
==============================================================================
Task : Execute oc command
Description : OpenShift execute CLI command.
Version : 3.0.2
Author : Red Hat
Help : See [getting started](https://github.com/redhat-developer/openshift-vsts/blob/master/docs/getting-started.md)
==============================================================================
/opt/azure_agents/_work/12/s/.download/oc login --insecure-skip-tls-verify -u *** -p *** https://api.ocp.company.com:6443/
WARNING: Using insecure TLS client config. Setting this option is not supported!
Login successful.
You have access to 10 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
##[error]Unable to determine home directory
Finishing: occmd
Apparently first part of command (login) is executed with no problems. But then something happens.
I tried to run oc get projects under same user that is used to run agent and got proper response.
If, however, instead of using oc-cmd I use bash:
- bash: |
oc login --insecure-skip-tls-verify -u user -p password https://api.ocp.company.com:6443/
oc get projects
I get expected result
The text was updated successfully, but these errors were encountered:
Hi team,
I'm trying to implement a pipeline that would create an OC deployment. However, it fails at any oc command.
The pipeline example:
No matter what command is I'm getting same result:
Apparently first part of command (login) is executed with no problems. But then something happens.
I tried to run
oc get projects
under same user that is used to run agent and got proper response.If, however, instead of using oc-cmd I use bash:
I get expected result
The text was updated successfully, but these errors were encountered: