Questions tagged [jenkinsfile]

A Jenkinsfile configures a Jenkins pipeline and so is a good way to have a build per Git branch or Git pull request when using SFDX commands.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Jenkins Pipeline Branch - Name showing as %00

I have a job created in Jenkins (Multibranch Pipeline). However, I am getting the Branch name as "%00" in the Jenkins UI. Can anyone suggest if there as a way to show anything meaningful instead of "%...
3
votes
0answers
27 views

How can “sfdx force:user:create” be retried?

We are using a Jenfinsfile in Jenkins to execute SFDX commands. The Jenkins user is connected to our Dev Hub. In one of our builds, we want to create a Customer Portal User, but in a small percentage ...
9
votes
1answer
174 views

Any way to get consistent test counts when parallel testing is used?

Moving to parallel testing has made one of our builds run 4x faster but the test result files returned from: sfdx force:apex:test:report after polling via: sfdx force:apex:test:run vary on every ...
0
votes
1answer
99 views

Error on secret-tool for sfdx force:auth:jwt:grant

We are trying to Setup CI-CD for our Org. However, while sfdx force:auth:jwt:grant on Jenkins, we are gettig the below error. Same command is working fine from local of 2 - 3 people. Jenkins is ...
2
votes
1answer
156 views

How can I simplify Jenkinsfile-based SFDX builds by using a Jenkins Shared Library?

With many CI (Continuous Integration) Jenkins builds using SFDX, we found that we were duplicating a couple of hundred lines of build file per build. We have a large number of builds, so this became ...
1
vote
1answer
70 views

Jenkins fails to create Scratch Org

I have a CI process runnning in Jenkins. The script is pushing everything to the devHub org and creating a package version. Next, it's trying to create a scratch org but is failing and throwing this ...
3
votes
1answer
341 views

EAI_AGAIN errors when pushing or running unit tests in a newly created scratch org from Jenkins CI using SFDX

We sometimes get this error reported from a sfdx force:source:push of a largish code base: ERROR: Error: getaddrinfo EAI_AGAIN nosoftware-momentum-7459-dev-ed.cs9.my.salesforce.com:443 some six ...
2
votes
1answer
178 views

Any way to deploy extra components on top of a sfdx force:source:push?

I'm deploying code to multiple orgs in parallel using a separately named project-scratch-def.json for each one. But I've come across a case where I can only deploy some triggers to one of those orgs ...
5
votes
3answers
433 views

SFDX DSL for Jenkins pipelines?

The Salesforce Jenkinsfile Walkthrough includes code such as this: stage('Create Scratch Org') { rc = sh returnStatus: true, script: "${toolbelt}/sfdx force:auth:jwt:grant --clientid ${...
6
votes
1answer
282 views

Can't get sfdx force:package:install to block in a Jenkinsfile

Using the Jenkinsfile mechanism - see the Salesforce Jenkinsfile Walkthrough - allows one Continuous Integration (CI) definition to automatically build multiple branches and multiple pull requests via ...