Dotnet Build Web Delpoy sends null password

I'm trying to set up Web Deploy to our IIS server.

When I run the publish profile inside visual studio, it runs fine, how-ever, we also use Jenkins for CI & CD, hence I want to run it form a command-line.

When i do this, i get the following error: MSDEPLOY : error Code: ERROR_USER_UNAUTHORIZED and on server, it says: Exception:System.ArgumentNullException: Value cannot be null. Parameter name: password

What am i missing? The password is saved in the publish profile.