Skip to content

Jenkins-SFDX retrieve failing using freestyle projects. No issue with pipeline projects. #433

@cumulus-robert

Description

@cumulus-robert

Summary

Unable to use Freeform Projects in Jenkins, only groovy scripts.

Steps To Reproduce:

  • Create a freestyle Project. Add shell script to retrieve. Review Output.

Expected result

  • It should retrieve per the script

Actual result

  • It fails with this reason:

ERROR running force:auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: EISDIR: illegal operation on a directory, read
Build step 'Execute shell' marked build as failure
Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
Finished: FAILURE

Additional information

I have tried what I know to try. I've:

  • reinstalled SFDX
  • perform chown on sfdx related folders to all users I can think of impacted: root, jenkins, my local user. All return same result.

Specifically this is the command I was using:

chown -R username:username /home/%user of install or sudo update%/.local/share/sfdx/
OR
chown -R username /home/%user of install or sudo update%/.local/share/sfdx/

Where username was replaced with each of the above.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):

sfdx-cli/7.61.0-af69066d0d linux-x64 node-v10.20.1

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-help 2.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.9 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.7.1 (core)
generator 1.1.2 (core)
salesforcedx 48.17.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5 (core)
├─ salesforcedx-templates 48.18.0 (core)
└─ salesforce-alm 48.18.0 (core)
sfdx-cli 7.61.0 (core)

I should note this is an out of box deployment/install of Jenkins. Freestyle projects have never worked since deployment. Only groovy scripts.

OS and version:

Debian GNU/Linux 9 (stretch) on Google Console Bitnami VM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions