Questions tagged [continuous-integration]

Continuous Integration (CI) implements continuous processes of applying quality control — small pieces of effort, applied frequently. Continuous integration aims to improve the quality of software, and to reduce the time taken to deliver it, by replacing the traditional practice of applying quality control after completing all development.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

XSD file for custom labels

I'm trying to generate an XSD for the customlabels.xml file. The idea is to generate this file and validate the custom labels file as part of the pipeline so that errors can be detected early on. The ...
Manu Murukesan's user avatar
-1 votes
1 answer
25 views

How to Create a Test Suite in Salesforce Using ANT Without Using the Developer Console?

I'm looking to set up a comprehensive test suite in Salesforce using ANT, and I want to perform all the tasks without relying on the Developer Console. Can someone provide guidance or a step-by-step ...
Emanuele Alfano's user avatar
0 votes
0 answers
49 views

Need Help Speeding Up Package Installations in GitHub Actions

Hey Salesforce Community, We're facing a challenge with our GitHub Actions CI setup, and we could use your insights to make it snappier. Background: We recently updated to the latest Salesforce CLI ...
Jesus Martinez's user avatar
0 votes
0 answers
96 views

Generate Codecov compatible coverage reports from force:source:deploy

I'm trying to add Codecov to our pipeline and have followed their guide to set it up. The guide uses force:apex:test:run which generates a report that Codecov can process. However I need to use the ...
jonny-harte's user avatar
0 votes
1 answer
48 views

How to add an org instanceUrl, username and password to a config file from a Bitbucket pipeline?

This relates to How to test a jsforce Node app that requires a security token? As it took me several yours to get this to work, I'm sharing the results to save anyone else needing to do this some of ...
Keith C's user avatar
  • 135k
0 votes
1 answer
138 views

How to test a jsforce Node app that requires a security token?

Our Node app that uses jsforce bulk upload APIs has a configuration file including this information: "salesforce" : { "username": "[email protected]", &...
Keith C's user avatar
  • 135k
1 vote
1 answer
241 views

How to include a "Guest User License" profile in the CI for a Digital Experience

Digital Experiences are turned on via the communities feature switch in the scratch org definition. But that feature switch does not make the "Guest User License" type available that is ...
Keith C's user avatar
  • 135k
0 votes
1 answer
435 views

Wondering how to properly organize git repo for salesforce org (branching strategy)

We have a little CRM project and I'm wondering how I could organize the whole git-sandboxes-deployment thing in a nice and smooth way. At the moment, I don't think there's actually a big need to do ...
robruf's user avatar
  • 362
1 vote
0 answers
207 views

How to safely store the Auth. Provider metadata in the git repository without revealing its secret?

I have an authprovider metadata stored in Git repo with the following body: <?xml version="1.0" encoding="UTF-8"?> <AuthProvider xmlns="http://soap.sforce.com/2006/04/...
Przemysław Długoszewski-Tamoń's user avatar
8 votes
0 answers
172 views

Dreadful CI Performance

I have built a continuous integration process using CircleCI for my large managed package. There are about 7,000 deployed components. The performance I am seeing is absolutely dreadful. I am using ...
Dave C's user avatar
  • 457
0 votes
1 answer
715 views

force:package:version:promote in CI script not finding package Alias: Subscriber Package Version Id not defined in sfdx-project.json

I am in the process of creating a CI script that uses GitHub actions for the creation and promotion of new package versions. For this I have created a shell script that is run after test classes have ...
dschib's user avatar
  • 118
1 vote
1 answer
514 views

Any way to fix this out of memory error installing @salesforce/sfdx-scanner?

We run our CI (Continuous Integration) build for our app using GitHub actions and part of that is to install and run the Salesforce CLI Scanner. We run on ubuntu-latest that is documented to have &...
Keith C's user avatar
  • 135k
4 votes
3 answers
2k views

Salesforce CI/CD: Only deploy changed elements and components

TL;DR Does the salesforce CLI have built in features that allow you to only deploy changes to a CI/CD pipeline? Problem Currently, wanting to move our non-profit to a CI/CD development model rather ...
thinker's user avatar
  • 1,402
0 votes
1 answer
80 views

Linux version of SFDX fails to provide results for "sfdx force:user:list" command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
Patlatus's user avatar
  • 16k
2 votes
1 answer
1k views

SFDX - CI - Named Credentials and environments

We have a repository with metadata in source format, and we use sfdx and ci job to deploy, some metadata (Named Credentials for this instance) contains some values that are env/org dependant. For the ...
Hassan ALAMI's user avatar
0 votes
2 answers
560 views

SFDX - Identify tests for a specific class

I am working on a github action that is supposed to validate a "delta" package of changes in a merge request in a target sandbox. For this validation process i am not supposed to run all ...
Hassan ALAMI's user avatar
0 votes
2 answers
1k views

Using Destructivechanges.xml and force:source:deploy --ignorewarnings to Production Environment

We are using Github as our source control and Drone.io CI/CD pipelines to handle builds and releases to multiple sandbox environments and our production environment. We would like to use ...
Trevor Gill's user avatar
0 votes
1 answer
194 views

Node.js (Heroku integration with Salesforce): How to get records from Salesforce and display them on a Heroku app using Node.js

I have created an Heroku app to be able to retrieve records (Contracts) from Salesforce and display them on my Heroku app. But I am struggling to write the correct request on my node.js code. ...
Hermann Ouré's user avatar
3 votes
0 answers
131 views

Manifest retrieves fields that belongs to managed package and more

I would like to retrieve only the necessary data from my production org (which has several installed managed packages). But when I retrieve the data in my manifest (package.xml) from org in order to ...
PeterPa1va's user avatar
3 votes
1 answer
304 views

How does SFDX and org changes work for Admins?

I've been trying to put together a plan for using SFDX in conjunction with a CI tool like Azure DevOps. It appears to have all of the right pieces for deploying metadata to/from git and scratch orgs/...
Kyle J V's user avatar
  • 287
1 vote
0 answers
440 views

Deploy with BitBucket pipelines and ant migration tool - commit hash of last successful build

I am using ant migration tool in bitbucket pipelines to deploy metadata into Salesforce instance. This pipeline runs for every commit pushed to master branch. The build process takes a considerable ...
Isuru Buddhika Herath'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
5 votes
1 answer
4k views

SFDX - Deploying Only Diffs

I am setting up a CI process using GitLab and SFDX. Developers do their work in a scratch org, then commit their changes to a QA branch. Upon this commit, the CI pipeline then deploys the entire ...
John_Henry's user avatar
6 votes
1 answer
779 views

How can sfdx force:community:create be used to setup a Community in Continuous Integration?

These SFDX community commands are available, but on my first try just running these commands: sfdx force:community:create --name Portal --templatename 'My Template' --urlpathprefix portal sfdx force:...
Keith C's user avatar
  • 135k
3 votes
1 answer
2k views

Salesforce CI/CD, from Change Set to SFDX with GitLab

I would like to ask about CI/CD in SFDC. Currently my team is doing this: Developing in a sandbox (first sandbox) Testing (UAT) in another sandbox (second sandbox) Deploying our custom codes or ...
Zhuang Paulus's user avatar
2 votes
1 answer
173 views

What is the benefit of using CLI in Salesforce DX?

I am wondering why we are using CLI in Salesforce DX over GUI. What are the real benefits?
Bforce's user avatar
  • 6,806
1 vote
1 answer
175 views

Copy file to Docker executor on Circleci for SFDX project

I have a SFDX project on github which is linked to circleci. I'm using docker executor in circleci. Now I don't want to create a new scratch org everytime my workflow runs on circleci after a commit. ...
Zarq Iqbal's user avatar
2 votes
1 answer
479 views

Salesforce CI/CD Implementation

We are in the process of moving from Org based development to Source code based development. We are using VSCode, GitHub and Jenkins. The steps that we followed are Create an empty GitHub repo and ...
Muthukumar's user avatar
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
2 votes
1 answer
5k views

Salesforce deployment using Ant and SFDX

Our project is in this format after using sfdx force:mdapi:convert -r src it converted to this which doesnt have package.xml Using sfdx force:source:convert converted project to this format with ...
nothingisimpossible's user avatar
4 votes
2 answers
1k views

When setting up Continuous Integration Job, should I deploy only changed files in commit or All files in repository? [closed]

I am setting up Continuous Integration and kind of confused as title says, whether to deploy only the components that are changed in the commit or all the components from repository? Some people ...
javanoob's user avatar
  • 8,787
12 votes
5 answers
9k views

Remove all old flow versions using SFDX

We have an old field referenced in older flow versions. We want to remove all older versions using SFDX and only upload the newest version without the field. Is it possible to do this without manually ...
toufik_at's user avatar
  • 360
0 votes
0 answers
1k views

Removing controlling field values (picklist dependencies) during deployment

We have multiple orgs on which we are running deployments using jenkins and ant deployment tool. We have problem when removing dependencies during deployment. So basically I'm able to remove ...
user1974566's user avatar
  • 2,275
0 votes
0 answers
218 views

How to auto generate salesforce package.xml for incremental changes in Bitbucket?

I am using Microsoft DevOps to deploying my changes to salesforce org and Bitbucket for versioning. Now, how can I auto-generate salesforce package.xml for all the incremental changes in Bitbucket so ...
Ravi's user avatar
  • 1
9 votes
1 answer
1k views

Is there a way to automate the deployment of changed picklist values in a pipeline using SalesforceDX?

Sometimes we need to change the label or, more commonly, a value for a picklist item. Suppose we do change the fullName attribute of a picklist field, to match an external system that will integrate ...
Renato Oliveira's user avatar
1 vote
1 answer
62 views

Salesforce integration with Codeless Platform

Their is a requirement, that I want to build a connection between salesforce and SAP B1 system. Therefore, We used codeless platform as our middleware. I'm not clear about the connection details from ...
Sachith Withana's user avatar
1 vote
1 answer
745 views

Authorize a DevHub using SalesforceDX without password

I am working on SalesforceDx and I have to authorize my devhub by just using Username of the org I dont want to enter password. I have tried JWT token for authorization but it uses an OPEN SSl ...
Hussain Gadisaaz's user avatar
1 vote
1 answer
592 views

Scratch org created from Bitbucket pipeline has no Standard User profile

To build DX unlocked packages I am using Bitbucket pipelines. I use the Salesforce configuration template for this. image: atlassian/default-image:2 pipelines: default: #These commands run for all ...
Robert Sösemann's user avatar
4 votes
4 answers
4k views

Retrieving package install URL via sfdx

I'm upgrading our build system to use sfdx, and I'm trying to automate all packaging operations for our managed package. Once a new package version has been created via sfdx, I would like to retrieve ...
mkorman's user avatar
  • 4,026
2 votes
2 answers
2k views

Script to dynamically generate XML file based on most Git commit contents (Salesforce CI)

I'm using DX for my Continuous Integration, but post-scratch org when I want to deploy into a traditional sandbox for staging, I'm struggling with an automated way to deploy only the new commits (as ...
EquationSolved's user avatar
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
0 votes
2 answers
474 views

Does Salesforce DX support Amazon Linux AMI?

Is there any way to install Salesforce DX CLI on an Amazon Linux AMI EC2 instance or does it only support Ubuntu? If it doesn't support the AMI OS, Is there anything on the roadmap? I need to the DX ...
VanAlfredo'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
4 votes
1 answer
2k views

How to setup Bamboo with Salesforce CLI?

Is there any guide on how to setup Bamboo with the Salesforce CLI. We are not using SalesforceDX yet but just want to setup a job to deploy from GIT repo in BitBucket onto a sandbox. I guess the steps ...
scottrm's user avatar
  • 305
1 vote
1 answer
172 views

Continuous Integration and Salesforce Metadata

I am trying to find a Continuous Integration solution not only for Apex code, Visualforce and Lightning Component but also for other Metadata. For example, I would check if on a Remote Site the Admin ...
vt89's user avatar
  • 725
2 votes
3 answers
678 views

SFDX CI: Invalid record ID. Specify valid record ID value

I'm trying to follow Continuous Integration Using Salesforce DX trailhead module, however, I'm using my own repo (I didn't clone the sample repo that is provided). I've used their .travis.yml file ...
smukov's user avatar
  • 5,503
6 votes
2 answers
651 views

Scratch org. default workflow user

Is it possible to programmatically set the default workflow user in a scratch org? My use is that I'm spinning up a fresh scratch org. as part of my CI pipeline. I could (and currently do) use a ...
Davin Casey's user avatar
  • 4,217
0 votes
1 answer
128 views

CI/CD in Java vs Salesforce [closed]

CI/CD in terms is the same for Java and Salesforce, but in depth what exactly are the differences between them in CI and CD pipelines? For example: in a Java CD pipeline, they have to go see a lot of ...
Raju Sen's user avatar
  • 301