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
1 vote
0 answers
34 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/...
user avatar
7 votes
0 answers
94 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 ...
user avatar
  • 325
0 votes
1 answer
102 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 ...
user avatar
  • 98
1 vote
1 answer
174 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 &...
user avatar
  • 129k
3 votes
2 answers
569 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 ...
user avatar
  • 1,258
0 votes
1 answer
30 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 ...
user avatar
  • 13.2k
2 votes
1 answer
248 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 ...
user avatar
0 votes
2 answers
128 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 ...
user avatar
0 votes
2 answers
381 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 ...
user avatar
0 votes
1 answer
74 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. ...
user avatar
2 votes
0 answers
31 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 ...
user avatar
3 votes
1 answer
249 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/...
user avatar
  • 287
1 vote
0 answers
268 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 ...
user avatar
0 votes
1 answer
66 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?
user avatar
5 votes
1 answer
3k 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 ...
user avatar
6 votes
1 answer
342 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:...
user avatar
  • 129k
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 ...
user avatar
2 votes
1 answer
134 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?
user avatar
  • 6,616
1 vote
1 answer
126 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. ...
user avatar
2 votes
1 answer
378 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 ...
user avatar
1 vote
0 answers
226 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. ...
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)...
user avatar
  • 3,754
1 vote
0 answers
354 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 ...
user avatar
2 votes
1 answer
4k 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 ...
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 ...
user avatar
  • 8,302
9 votes
4 answers
5k 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 ...
user avatar
  • 330
0 votes
0 answers
677 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 ...
user avatar
  • 2,032
0 votes
0 answers
163 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 ...
user avatar
  • 1
8 votes
1 answer
738 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 ...
user avatar
1 vote
1 answer
49 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 ...
user avatar
1 vote
1 answer
581 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 ...
user avatar
1 vote
1 answer
500 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 ...
user avatar
3 votes
4 answers
2k 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 ...
user avatar
  • 3,940
2 votes
2 answers
1k 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 ...
user avatar
6 votes
1 answer
640 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 ...
user avatar
  • 129k
0 votes
2 answers
318 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 ...
user avatar
4 votes
1 answer
208 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 ...
user avatar
  • 129k
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 ...
user avatar
  • 305
1 vote
1 answer
158 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 ...
user avatar
  • 685
2 votes
3 answers
569 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 ...
user avatar
  • 5,188
6 votes
2 answers
600 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 ...
user avatar
  • 4,207
0 votes
1 answer
116 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 ...
user avatar
  • 301
1 vote
0 answers
61 views

CI server when using DX

I have a managed package. Since converting the code to DX I have struggled to create a continuous integration server. I'm hoping someone can give me some pointers. We use a GitHub flow for managing ...
user avatar
4 votes
1 answer
78 views

Continuous Delivery

Is it possible to implement continuous delivery in Salesforce? By "continuous delivery", I mean that the build, test and deployment steps that occur from the time that code is checked in to the time ...
user avatar
  • 41
3 votes
1 answer
1k views

Continuous integration of Salesforce with CircleCI

I want to setup our Continuous Integration with CircleCI. I want our GitHub to deploy our code to a central test org anytime a developer pushes changes to run all the Apex tests and make sure that ...
user avatar
  • 2,122
8 votes
2 answers
908 views

Travis CI fails to create a scratch org

Yesterday, my Travis CI builds started to fail on a scratch org creation step: $ sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile server.key --username $USERNAME --...
user avatar
  • 391
1 vote
1 answer
270 views

Salesforce DX and Heroku CI

I have discovered Salesforce DX and done some test using its. I have also read about Heroku CI and Pipelines but I have not understood if I can use these technologies during Salesforce DX development....
user avatar
  • 685
0 votes
1 answer
546 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:...
user avatar
0 votes
1 answer
85 views

java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;)

C:\Users\rajiv\Downloads\salesforce_ant_40.0\sample\build.xml:14: java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;) ...
user avatar
  • 23
0 votes
1 answer
7k 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?
user avatar
  • 4,532