Skip to main content
Tweeted twitter.com/StackSalesforce/status/1420896944629616648
Add the project JSON transposed from a comment
Source Link
Phil W
  • 38.1k
  • 5
  • 53
  • 106

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue?

  • sfdx force:source:deploy -p ./deploy-sf -l NoTestRun --verbose --loglevel fatal -u [email protected]

› Warning: sfdx-cli update available from 7.78.1 to 7.80.0.

Using specified username [email protected]

ERROR running force:source:deploy: InvalidPackageDirectory

script returned exit code 1

The sfdx-project.json looks like:

{
  "packageDirectories": [
    {
      "path": "force-app",
      "default": true
    },
    {
      "path": "deploy-sf",
      "default": false
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "login.salesforce.com",
  "sourceApiVersion": "47.0"
}

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue?

  • sfdx force:source:deploy -p ./deploy-sf -l NoTestRun --verbose --loglevel fatal -u [email protected]

› Warning: sfdx-cli update available from 7.78.1 to 7.80.0.

Using specified username [email protected]

ERROR running force:source:deploy: InvalidPackageDirectory

script returned exit code 1

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue?

  • sfdx force:source:deploy -p ./deploy-sf -l NoTestRun --verbose --loglevel fatal -u [email protected]

› Warning: sfdx-cli update available from 7.78.1 to 7.80.0.

Using specified username [email protected]

ERROR running force:source:deploy: InvalidPackageDirectory

script returned exit code 1

The sfdx-project.json looks like:

{
  "packageDirectories": [
    {
      "path": "force-app",
      "default": true
    },
    {
      "path": "deploy-sf",
      "default": false
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "login.salesforce.com",
  "sourceApiVersion": "47.0"
}
Source Link
Ashok
  • 61
  • 1
  • 2

ERROR running force:source:deploy: InvalidPackageDirectory

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue?

  • sfdx force:source:deploy -p ./deploy-sf -l NoTestRun --verbose --loglevel fatal -u [email protected]

› Warning: sfdx-cli update available from 7.78.1 to 7.80.0.

Using specified username [email protected]

ERROR running force:source:deploy: InvalidPackageDirectory

script returned exit code 1