Questions tagged [jenkins]

Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle, which claims the right to trademark the Hudson name and has applied for such a trademark as of December 2010.

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

Jenkins sfdx jwt login issue

So we're using Jenkins to integrate between our Salesforce environments and having an issue with one job in particular. The job copies the code base from our production environment and sends the ...
Finnster's user avatar
0 votes
0 answers
72 views

Evaluate package/package.xml for any components

I'm looking for guidance regarding a method to check the package/package.xml before deploying. My sgd command is as follows: sh """ $NODE_BIN_PATH/sfdx sgd:source:delta \ --to $...
Jklotzle's user avatar
0 votes
1 answer
2k views

ECONNRESET when authenticating via sfdx auth:jwt:grant

I have configured below pre-requisites for JWT based authentication to Salesforce sandbox. ConnectedApp server.key Client Id I am trying to authenticate Salesforce sandbox from client's Jenkins ...
Swapnil Shrishrimal's user avatar
1 vote
2 answers
766 views

sfdx auth:jwt:grant: Unexpected arguments: -f

I am trying to connect Jenkins to the SF sandbox. I am stuck on the auth step, where I receive this kind of error: ERROR running auth:jwt:grant: Unexpected argument: Pipeline@tmp/secretFiles/e56a52e6-...
Oleksandr Honcharuk's user avatar
1 vote
1 answer
663 views

sfdx sgd-git-delta plugin not recognized in Jenkins pipeline [closed]

I have installed sfdx git delta plugin on my system. It works perfectly well when I execute locally on Git Bash / CMD / Visual Studio Code. But when I trigger the Jenkins pipeline, I see that sfdx ...
Swapnil Shrishrimal's user avatar
2 votes
2 answers
658 views

Incremental deployment using SFDX CLI, Jenkins and GitHub

I have implemented deployment pipeline in Jenkins using SFDX CLI and GitHub. I am able to deploy metadata to Salesforce Org using below commands. First, validate the deployment sfdx force:mdapi:...
Swapnil Shrishrimal's user avatar
0 votes
1 answer
1k views

Salesforce deployment using SFDX CLI, Jenkins and GitHub

I am new to Salesforce and SFDX CLI. I need to implement CI / CD for one of my client. To start with basic I created Dev Org using Visual Studio Code and committed same to GitHub. Integrated SFDX CLI ...
Swapnil Shrishrimal's user avatar
1 vote
0 answers
89 views

Error pushing code to the scratch org using DX command in the CI/CD pipline

I have set up a ci/cd pipeline using Jenkins. I am running a couple of commands using the Jenkins file. The commands like creating a scratch org, generating a password for the scratch org, converting ...
Aman Jain's user avatar
  • 121
0 votes
1 answer
101 views

I need community perspective in regards to Jenkins Salesforce CI setup for deployments with ant Migration tool

I could not invoke ant from Jenkins. I am new to this CI/CD, I was able to invoke ant from cmd but I could not do it with jenkins. If I need to upload futher code, please let me know. The error is ...
inbox outbox's user avatar
0 votes
1 answer
205 views

Deploying to Scratch Org in Jenkins pipeline with ant

I have a Jenkins script to generate a scratch org, make a user for that scratch org along with a password. When I try to deploy using that username and password I get build/lib/deploy.xml:26: Invalid ...
ConorMoore's user avatar
0 votes
1 answer
1k views

De-Activate a Process Builder via Metadata API

I want to de-activate a process builder on a destination sandbox. I have set the status as Obsolete on the .flow file and deploy via Jenkins. But it didn't get deactivated. API Version is 52. Any idea?...
L Mudiyanse's user avatar
4 votes
0 answers
204 views

Scratch org Experiences/Communities features missing about 25% of the time

We have a Jenkins build that creates scratch orgs using this project-scratch-def.json: { "orgName": "Xyz", "edition": "Developer", "features&...
Keith C's user avatar
  • 135k
2 votes
1 answer
695 views

Jenkins Job with SFDX command doesn't deploy the code and doesn't give an error

SFDX Version: sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3 Jenkins Job has 3 steps. Step1: Pull the project from Git Step2: Authentication D:\project\jobname>sfdx force:auth:jwt:grant --...
Raj's user avatar
  • 21
0 votes
1 answer
226 views

CI Continuous Integration with AWS & Jenkins

I found some examples how to implement CI with AWS ad Jenkins but none of these examples explains clearly what AWS does. As i understood Jenkins is the CI server that interacts between master branch ...
Thomas's user avatar
  • 2,294
6 votes
2 answers
6k views

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 ...
Ashok's user avatar
  • 61
0 votes
1 answer
292 views

Unable to invoke async test job: Subscriber handshake failed due to a socket timeout

there is a known issue SFDX- when using in JENKINS :sfdx force:apex:test:run: An ERROR: Unable to invoke async test job: Subscriber handshake failed due to a socket timeout on trailblazer site with no ...
hlopetz's user avatar
  • 247
1 vote
0 answers
105 views

Issue- Jenkins Creating new version of Process Builder every time it builds!

We are using Jenkins for our deployments. Its strange that everytime when the build happens, it creates a 'new version' of one particular process builder and we get error "version limit exceeded&...
Marketing cloud Geek's user avatar
0 votes
0 answers
373 views

Profile Access to Activity Custom Fields via git

I have a added a custom field in Activity object and gave read only access to a specific profile. We are having git and Jenkins to deploy these files. Below is the profile definition with adding the ...
L Mudiyanse's user avatar
2 votes
0 answers
1k views

SFDX SonarQube code coverage

In our org we have setup SonarQube with codescan. The build is triggered through a Jenkins job. Now we are struggling to get data from the coverage. eventhough we are setting the resultformat to json ...
RomeoRomeo's user avatar
0 votes
1 answer
77 views

Jenkins CI and SFDX [closed]

Do we need to learn Groovy language to start using Jenkins CI with SFDX? is there any other way to do it?
Coding Artist's user avatar
1 vote
2 answers
554 views

Speed up/optimise build time (ant deployment)

I have a build/ant deployment related question for which I did not find any reasonable answers with a google search, hence posting the question here. I have around 9 individual repositories where one ...
Dwarakesh Pallagolla's user avatar
0 votes
1 answer
130 views

SFDX Jenkins Parse and install dependencies

I am trying to create a Jenkins pipeline to install package dependencies and my code looks like this: def data = readJSON file:'sfdx-project.json' for (item in data.packageDirectories.dependencies) { ...
scarecrow's user avatar
  • 103
0 votes
0 answers
344 views

force:source:deploy is not a sfdx command error while trying to deploy through Jenkins

I am trying to setup the CI / CD through Jenkins. I have installed the Jenkins locally and have created a new pipeline project. I am able to successfully authenticate the org using JWT. However, i am ...
Yashmith's user avatar
0 votes
1 answer
205 views

'CustomMetadataTypeAccesses' not valid in version 42

I'm trying to enable custom metada types to my permission sets in my metadata.xml file and deploy it to an org and I get this errir. I've tried updating API versions in my package.xml but still no ...
Rishi's user avatar
  • 1
0 votes
1 answer
489 views

Pushing to a remote branch on GitLab from Jenkins for a Salesforce SFDX Project [closed]

I am setting a Pipeline for a Salesforce project and wants to create a Job that refreshes a particular branch with Master Branch and PUSH it back to the remote GitLab repo hosted inside our data ...
Chetan's user avatar
  • 303
1 vote
2 answers
2k views

Setting up Jenkins Pipeline with SFDX

I have been trying to set up a Jenkins pipeline to automate my deployment.The process that I am trying to implement is we will have four main branches(validate,develop,uat,master).When a merge request ...
Chetan's user avatar
  • 303
1 vote
0 answers
287 views

Jenkins build issue for SFRA

Hi SFCC Developers, I am facing an issue while doing a build through Jenkins. (We are using Jenkins for CI.) I have followed a same steps which we follow for compilation through our local machines. ...
Swapnil Sawant's user avatar
5 votes
2 answers
2k views

CI/CD with package.xml: how to deploy incrementally?

I have the following CI flows setup in my git repo: Deploy to Staging org when master branch is updated (automated) Deploy to Production org from master branch as initiated by Release Manager (manual)...
Mossi's user avatar
  • 3,906
1 vote
0 answers
532 views

How to deploy Commerce Cloud code (SFRA version) using jenkins?

We need to deploy SFRA code to development and staging instance. Earlier for pipeline version, we had used Jenkins plugin i.e "OSF Builder Suite For Salesforce Commerce Cloud Deploy" to deploy to ...
Swapnil Sawant's user avatar
0 votes
1 answer
173 views

Advantage of incremental delivery

We are using a full strategy to deliver our package in production (we make a package with all metadata) and we hesitate to switch to an incremental strategy (send package only with metadata we create/ ...
Badbaxx's user avatar
  • 375
0 votes
0 answers
69 views

If the scratch org is expired a new scratch org should be provisioned for the developer in CI/CD

I am setting up a CI/CD with bitbucket/jenkins using SFDX. I want each developer to have their own scratch org if they push to their feature branch. I have to maintain if the scratch org is expired ...
Lokesh Gupta's user avatar
1 vote
0 answers
385 views

How to rollback metadata changes using Jenkins and bash script

I am working on a project in which I have to rollback the metadata components which we have deployed into destination org using Jenkins. Does anyone have built this kind of project / Scenario. Steps ...
Nitendra Shukla's user avatar
0 votes
1 answer
2k views

Jenkins + Sfdx Auth issue

I am trying to use Jenkins for my project CI. I followed the salesforce document and a few blogs for the setup. Here is my Jenkinsfile: #!groovy import groovy.json.JsonSlurperClassic node { def ...
Tamil's user avatar
  • 714
0 votes
0 answers
2k views

No Custom Field named found Custom report type

I have a custom report type of category Accounts & Contacts, on running the Jenkins build, I am receiving the following error. The field mentioned here reportTypes/...
Nilang Pandey's user avatar
0 votes
0 answers
163 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 "%...
Varun SFDC's user avatar
3 votes
0 answers
232 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 ...
Keith C's user avatar
  • 135k
13 votes
2 answers
1k 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 ...
Keith C's user avatar
  • 135k
2 votes
1 answer
1k 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 ...
Varun SFDC's user avatar
0 votes
2 answers
626 views

How to get test coverage of org while running validation jobs?

In our CI process, we trigger a job for validation in Jenkins and have an ant target which runs the validation first with checkOnly as true and runs all the tests. build.xml : <target name="...
Nagendra Singh's user avatar
2 votes
1 answer
500 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 ...
Keith C's user avatar
  • 135k
3 votes
1 answer
1k views

Jenkins, Docker and SFDX: Share SFDX "cache" between docker containers

Our jenkins jobs using SFDX are dockerized, and we would like to be able to reuse scratch orgs from one job to another. As a scratch org is linked to one SFDX CLI installation sfdx force:org:list ...
Nicolas Vuillamy's user avatar
1 vote
1 answer
345 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 ...
Carlos Iribar's user avatar
5 votes
2 answers
4k 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 ...
Keith C's user avatar
  • 135k
2 votes
1 answer
629 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 ...
Keith C's user avatar
  • 135k
5 votes
3 answers
1k 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 ${...
Keith C's user avatar
  • 135k
6 votes
1 answer
759 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 ...
Keith C's user avatar
  • 135k
1 vote
2 answers
3k views

Deployment failing with "Could not resolve list view column: CORE.USERS.SAML_SUBJECT" on the User object

I am trying to deploy metadata to dev sandbox to another sandbox using Jenkins. I am getting an error as below: [sf:deploy] Component Failures: [sf:deploy] 1. objects/User.object (User....
Anusha.G's user avatar
3 votes
1 answer
1k views

Is it possible to exclude files in package.xml in ANT deployment?

I am trying to exclude a file (which is in the deployment root folder) from being deployed to a sandbox. Does ant have any sort of attribute to achieve this? <target name="deploy"> <sf:...
Sriram Lns's user avatar
4 votes
1 answer
232 views

Is there an SFDX plugin that allows an existing field to be updated available somewhere?

I'm in the middle of writing a Jenkinsfile so we can have one Jenkins job that handles multiple branches and multiple org configurations. For the multiple org configurations, I'm using the parallel ...
Keith C's user avatar
  • 135k
2 votes
2 answers
565 views

SFDX Jenkins Setup: Scratch Org not accessible from remote machine

I am currently doing a POC for the Continuous Integration in Salesforce DX through Jenkins. My Jenkins Setup is such that the job-run creates an on-demand agent which executes the job and gets scraped ...
prerna's user avatar
  • 21