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
1answer
11 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 ...
1
vote
0answers
62 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 ...
0
votes
2answers
40 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 ...
0
votes
2answers
83 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 ...
0
votes
1answer
46 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. ...
2
votes
0answers
25 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 ...
3
votes
1answer
200 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/...
1
vote
0answers
170 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 ...
0
votes
1answer
53 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?
5
votes
1answer
2k 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 ...
6
votes
1answer
180 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:...
3
votes
1answer
922 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 ...
2
votes
1answer
128 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?
1
vote
1answer
87 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. ...
2
votes
1answer
310 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 ...
1
vote
0answers
194 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. ...
5
votes
2answers
1k 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
260 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 ...
2
votes
1answer
3k 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 ...
4
votes
2answers
809 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 ...
8
votes
4answers
3k 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 ...
0
votes
0answers
490 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 ...
0
votes
0answers
143 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 ...
8
votes
1answer
533 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 ...
1
vote
1answer
45 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 ...
1
vote
1answer
480 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 ...
1
vote
1answer
386 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 ...
3
votes
4answers
1k 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 ...
2
votes
1answer
991 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 ...
6
votes
1answer
565 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 ...
0
votes
2answers
281 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 ...
4
votes
1answer
192 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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
148 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 ...
2
votes
3answers
519 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 ...
6
votes
2answers
507 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 ...
0
votes
1answer
111 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 ...
1
vote
0answers
59 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 ...
4
votes
1answer
77 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 ...
3
votes
1answer
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 ...
8
votes
2answers
826 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 --...
1
vote
1answer
259 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....
0
votes
1answer
479 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:...
0
votes
1answer
80 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;) ...
0
votes
1answer
5k 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
477 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 ...
4
votes
1answer
1k views

How To? Namespace and multiple dev orgs

What is the best practices to use multiple dev orgs while developing app that will be distributed as Managed Package with Namespace prefix. The problem: Once Namespace has been created, there is some ...
7
votes
1answer
1k views

are there alternatives to Salesforce ANT

Today, we are using the combination of Jenkins and the Salesforce ANT migration toolkit. The problem is that all our other projects in the company are not using ant anymore and have moved to either ...
0
votes
0answers
86 views

Continuous Integration: How To Get Over Common Ant Deployment Issues Which Often Require Manual Intervention

I've deployed many times to SFDC using the Force.Com Migration Tool & Ant. In many cases I often end up having to undertake manual steps to get around issues. An example being Flows. Flows cannot ...
2
votes
1answer
838 views

Build.xml setup for continuous integration

I am trying to setup my build.xml to reference the ant-salesforce.jar from my project checkout. The directory structure is similar to this: Project Dir -> src -> ant-salesforce.jar -> build....