We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
0answers
25 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. ...
3
votes
1answer
74 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)...
1
vote
0answers
50 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 ...
0
votes
1answer
74 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/ ...
0
votes
0answers
31 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 ...
1
vote
0answers
45 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 ...
0
votes
1answer
70 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 ...
0
votes
0answers
30 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/...
0
votes
0answers
15 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 "%...
0
votes
0answers
33 views

Run deploy on different sandbox with one slave Jenkins

I installed Jenkins with sfdx on a server AWS. I configured a pipeline that works well with no error. But when I have 2 pipelines deploying with the same slave on 2 different sandboxes, I have a ...
3
votes
0answers
30 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 ...
10
votes
1answer
225 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
148 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 ...
0
votes
2answers
44 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="...
2
votes
1answer
240 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
276 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 ...
1
vote
1answer
85 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
492 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
202 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
568 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
337 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 ...
1
vote
1answer
521 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....
3
votes
1answer
393 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:...
3
votes
1answer
121 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 ...
1
vote
2answers
347 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 ...
0
votes
0answers
343 views

Winter'19 - Deployment fails with internal server error

At my work, we have the following development journey: we develop in one dev org via Jenkins, we retrieve all the metadata (and I mean all) after retrieving the metadata, Jenkins commit it to ...
1
vote
1answer
33 views

Jenkins not processing Apex pages

This is not exactly related to an issue in Salesforce but asking anyway. I had build scheduled in Jenkins to move changes to our QA Salesforce org. Everything is getting moved except for Visualforce ...
0
votes
1answer
126 views

Hang on JWT auth in Jenkins Create Scratch Org stage on OSX

I have followed the steps in the Salesforce Developer page to setup Jenkins for SFDX CI build. It always hangs on the task: rc = sh returnStatus: true, script: "${toolbelt}/sfdx force:auth:jwt:grant ...
0
votes
0answers
112 views

How to handle code dependency while deploying code?

Here is a scenario what I have, I have two dev org (development, Testing), one Bitbucket repository and AWS EC2 that contain Jenkins with ANT migration tool. I am not able to move all code in one ...
0
votes
1answer
273 views

ANT Migration to add namespace to packaging org? [closed]

I have two dev org one where I did code and other is packaging org where I have to create a managed package. How can I configure ANT tool with build.xml and build.properties files to add the ...
2
votes
1answer
485 views

Jenkins Pipeline - sfdx folder not found

I'm trying to setup a Jenkins Pipeline for our SFDX CI process on a Jenkins instance. I've successfully added the custom tool I can successfully create a new scratch org via ${toolbelt} folder as ...
3
votes
1answer
400 views

Unable to authorise dev hub on jenkins with it hanging on the force:auth:jwt:grant step

Issue I am trying to setup jenkins to build using the Jenkinsfile and the sfdx cli. I have been following the steps and examples here. I have followed the steps and tried a few times from scratch but ...
1
vote
1answer
880 views

Jenkins CI with Salesforce: how to generate package.xml which only contains changed metadata files

To automate our salesforce development flow, we are using Git + Jenkins + Ant to deploy all committed changes to target organization. It works fine! But the only big problem is that all metadata files ...
0
votes
1answer
309 views

Jenkins Build Failure

I'm receiving this error when trying to run a Jenkins Job. The file configuration seems to be valid. What steps should I take to troublshoot this issue? Problem: failed to create task or type antlib:...
2
votes
1answer
2k views

Installing Jenkins on Heroku [closed]

Currently I have Jenkins installed in my laptop and works fine. I am to move this setup to cloud. My client has bought Heroku license and was considering using Heroku space n license to install ...
0
votes
1answer
2k views

How to clone a Jenkins job in a different folder? [closed]

Even as a full administrator, a Jenkins job cannot be cloned if the source job is in a different folder. Screenshot 1: Screenshot 2: So, how to clone a Jenkins job in a different folder?
2
votes
0answers
238 views

Continuous Integration in Marketing Cloud

Due to the complexity of the internal release management of my client, my team and I decided to create 3 BUs (2 for testing and sprint development and one for PROD). Unfortunately, Marketing Cloud ...
1
vote
0answers
351 views

Facing issue in Jenkins integrated with Apex PMD

I have integrated Jenkins with PMD checksytle for Apex. package.xml <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <...
3
votes
1answer
2k views

Error: Cannot change which global value set this picklist uses

While deploying using Jenkins I get the error: Error: Cannot change which global value set this picklist uses I have made a global picklist which has three values out of which one is default. <...
2
votes
0answers
57 views

Force.com Migration Tool “Validate Only” causing later compilation errors

We just implemented a new process in our development cycle where code that has been completed is validated against a target org to check that no packaging specific rules have been violated (such as ...
0
votes
0answers
447 views

integrating jenkins with salesforce with svn as code repository

Error message: Unable to find build script at C:\Users.jenkins\workspace\sfdc\https:\url\svn\svn_test\branches\Enhancement\build.xml Finished: FAILURE I am having issues when integrating jenkins ...
4
votes
1answer
465 views

Jenkins Salesforce CI server setup

I have a simple doubt and wanted to get community perspective. I have set up Jenkins for all my Salesforce deployments with Force.com Migration tool. Now it works properly on my local machine without ...
4
votes
1answer
440 views

Create developer sandbox from Jenkins

I know how to create them manually through the interface (it is really easy) setup > sandbox > new sandbox > and follow the GUI. Is there an API or a script that would allow me to create a sandbox ...
0
votes
3answers
909 views

Getting “Failed to login” error while run Ant Migration Tool Target

I'm trying to run Ant Migration Tool Target using Jenkins CI from my server and getting next error: BUILD FAILED /var/lib/jenkins/workspace/<Jenkins Build Job Name>/build.xml:41: Failed to ...
1
vote
1answer
417 views

Jenkins + Ant Migration Tool: Caused by: com.sforce.ws.ConnectionException

I'm trying to configure deploying my sfdc metadata using JenkinsCI but in case I see next error: deployCodeCheckOnly: parsing buildfile jar:file:/usr/share/ant/lib/ant-salesforce.jar!/com/salesforce/...
12
votes
4answers
6k views

Deploy incremental changes using Github and Jenkins

We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub. We would like to improve ...
1
vote
1answer
133 views

Salesforce Change Management - multiple development sandboxes

I want to know what can be the best architecture concerning my case. In my organization I am planning to use Git, Jenkins and Gitlab. I have 4 Dev sandboxes and 4 QA sandboxes which point to ...
0
votes
1answer
135 views

Continuous Integration in Salesforce for Packaging Orgs with Jenkins, Bit Bucket

We have different Packing orgs in our company with different functionalities. we want to setup continuous integration with these orgs and Jenkins server. Could someone suggest me how to set up CI for ...
2
votes
1answer
760 views

Moving code from Git Repository to sandbox using Ant

We're trying to implement source control using GitLab and Jenkins. I know how to merge code between two branches in Gitlab. That has to trigger a job in Jenkins to deploy changes from the remote ...
1
vote
0answers
160 views

Jenkins job for Salesforce deployment printed the -Dsf.password in console

Am using the Jenkins to do the Salesforce deployment. Build is parameterised. When I sun the ANT build for deployment, in console I could see the passport printed by the Salesforce ANT command. Is ...