2022 Developer Survey is open! Take survey.

Questions tagged [cicd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
8 views

Not able to add admin permission set with cumulusci command

I am not able to set permission set with cumulusci command, Previously, I was using below commands and they were working fine. cci task run permission_Api_Name--org dev cci task run ...
user avatar
0 votes
0 answers
211 views

sfdx force:source:deploy is failing with ECONNRESET error

One of my sandboxes I use for my CI pipeline has begun to fail on deployments. However, the Deployment Status tab in Salesforce shows the deployment as succeeding, most of the time. Running the ...
user avatar
0 votes
1 answer
62 views

How to inactivate a validate rule using SFDX command

Is there any way that we can inactive/deactivate a validation rule using SFDX command? I have researched completely. And I thought that force:source:deploy would help, but it seems to be a little ...
user avatar
  • 13
1 vote
1 answer
174 views

SFDX Test Code Coverage on deployment - CICD

I am trying to set up a CICD validation which needs to check if the test code coverage is going below 85% on a Pull Request. I am using the below SFDX deploy command but it doesn't give me code ...
user avatar
  • 61
-1 votes
1 answer
31 views

Allow-list IP on salesforce environment automation / Programatically

I have scenario, Need to allow-list IP address in Salesforce from a CI pipeline (Azure DevOps pipeline), IP address is azure DevOps Microsoft hosted agent. Is there a way to achieve this using SFDX ...
user avatar
  • 1
-2 votes
2 answers
74 views

What is the recommended tool to start CI/CD for Salesforce development? [closed]

I'm new to this subject, but trying to start on the right foot. What are the recommended tools to start CI/CD for Salesforce development source version control and SFDX context?
user avatar
3 votes
1 answer
152 views

Need Suggestion : Release/Branching Strategy using bitbucket CI/CD [closed]

We follow hybrid agile methodology in our project where we have Main release at every month end. We also have Fast track release on First Week of every month. Purpose of Fast Track release is to make ...
user avatar
1 vote
0 answers
27 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 ...
user avatar
  • 101
0 votes
1 answer
38 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 ...
user avatar
2 votes
1 answer
213 views

GitLab still recommended for Salesforce

I try to get involved using GitLab in combination with Salesforce. However, the trailhead module 'Build an Automated CI/CD Pipeline with GitLab' seems to have been taken offline, and some other ...
user avatar
0 votes
0 answers
33 views

How to enable MultipleNavigationMenu permission?

I'm trying to extract the NavigationMenu metadata from Salesforce so I can deploy the Object tabs on the Navigation Bar via one of the Salesforce CI/CD tools. One of the support agents told me I ...
user avatar
  • 1,051
1 vote
1 answer
222 views

Component does not implement lightning:actionOverride interface - false positive

Today I started encountering this issue when deploying source code to sandbox using sfdx: TYPE FILE NAME PROBLEM ───── ────────────────────────────────── ───...
user avatar
  • 604
3 votes
2 answers
575 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
2 votes
2 answers
122 views

Connecting Github actions to my salesforce

i am starting to learn CI/CD and i want to create Github actions for my salesforce project. for when I need the SFDX URL, the format is this ( after executing force:force:org:display -u ORG-ALIAS --...
user avatar
0 votes
0 answers
45 views

Github Action to read sfdx-project.json file

I need to read sfdx-project.json file to read app the dependencies and install them before deploying the code to scratch org. I tried to use notiz-dev/github-action-json-property@release action, but ...
user avatar
  • 304
1 vote
1 answer
123 views

Salesforce CI CD deployment

CI/CD sfdx deployments using Saleforce CLI by default deploys all the metadata into the Orgs. Is this recommended ? Or should we limit the deployments to changed components alone (using package.xml)? ...
user avatar
2 votes
1 answer
349 views

Salesforce CI CD deployment commands

Currently we are following ChangeSet deployment model and want to switch to Org deployment model to support CI/CD process by taking advantage of Salesforce CLI commands. But, for deployment to Orgs ...
user avatar
0 votes
1 answer
170 views

How to properly add changes to releted lists to the repository?

I have a task to make changes to the display of fields in a standard related list. For this purpose, I create a scratch org and make changes. Then I use the commands: sfdx force:source:status sfdx ...
user avatar
  • 1
1 vote
1 answer
980 views

SFDX-Git-Delta plugin not finding differences between branches in github action

I have my yml file for my github action set up like this: name: Test Deploy Delta on: push: workflow_dispatch: jobs: build: runs-on: windows-latest steps: - name: Check out repository code ...
user avatar
  • 2,319
1 vote
1 answer
189 views

YML scripts for deploying changes into DEV instance

I have the below bash script to deploy the changes are checked in to Azure Devops to the Salesforce instance. Script runs as soon as checkin made to DEV branch it is all working good sfdx force:...
user avatar
  • 599
0 votes
1 answer
89 views

Error when trying to create unlocked package version in full sandbox for testing

When I run the CLI command force:package:version:create I get this error: Packaging is not enabled on this org. Verify that you are authenticated to the desired org and try again. The org I'm trying ...
user avatar
  • 574
3 votes
0 answers
54 views

How to access a refreshed Sandbox in CI/CD? [duplicate]

We are using the classical machine-to-machine approach to connect to our DevHub to create scratch org, but in pre-release we need to connect to sandbox environments, which we would like to refresh ...
user avatar
  • 1,612
1 vote
2 answers
314 views

Salesforce Git Repository using VS Code

I am trying to set up the Git Repo for our Salesforce instance, we are trying to use VS Code. This is my first time setting up and never used the ANT migration tool. We do manual Change set deployment ...
user avatar
  • 599
2 votes
1 answer
253 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
0 answers
39 views

Managing Custom fields when breaking down a monolith org into packages

We're moving towards the package development approach instead of the current monolith org. We'll also be using scratch orgs and CI/CD. The most important and tricky part that I'm facing right now is, ...
user avatar
  • 574
0 votes
1 answer
88 views

Salesforce DevOps [closed]

I am new to Salesforce DevOps. Apart from DX and GIT, Can someone help me to know what are the different techonologies can be used to implement a custom SF CICD. I know how to set up Azure CICD ...
user avatar
  • 149
0 votes
1 answer
147 views

Error in Travis CI build, trying to complete SFDX Travis CI Trailhead module

I've been struggling a lot trying to complete this trailhead module. The first issue was while trying to log in with GitHub creds, which I solved using the GitHub-token flag. Now, after I Kick-off ...
user avatar
  • 232
2 votes
1 answer
250 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 --...
user avatar
  • 21
0 votes
1 answer
455 views

Anyone experiencing deployment being 'stuck' using SFDX?

I am currently experiencing issue with deployment using SFDX being "stuck" without completing the deployment with no errors. This seems to have happened about 4 hours ago. I am ...
user avatar
0 votes
1 answer
37 views

Is adding bots to an unlocked package supported?

Running into the following error trying to create an unlocked package for Bots: sfdx force:package:version:create --package 0Ho3t000000PB6RCAW --installationkeybypass --wait 10 --json -v dev-hub-org {...
user avatar
2 votes
1 answer
244 views

How can I automatically detect if any deployment is running in a sandbox?

I have several sandboxes available that my Azure DevOps pipeline can deploy to. I want my pipeline to check each sandbox to see if there is a deployment running. If there is, try the next one, if not,...
user avatar
  • 903
0 votes
0 answers
519 views

Cannot iterate over null (null)

I am trying to create CI/CD process in GitLab based on trailhead. I reuse snippets of code from trailhead $ PACKAGE_VERSION_JSON="$(eval sfdx force:package:version:list --concise --released --...
user avatar
  • 25
3 votes
1 answer
307 views

Scratch org - Pushing email alert which are using OrgWideAddress

I want to push the code which has email alerts. However, it is not allowing because in the email alert its using org-wide address. I searched and it seems not possible at this moment(v50.0). However, ...
user avatar
  • 2,761
1 vote
2 answers
656 views

How to login to a ScratchOrg that was created by CI/CD scripts?

We are running DX with CI/CD using Jenkins. Our CI/CD scripts will create the scratchOrg properly, and provide the login details (domain, username, password) We use this to log in when there is a ...
user avatar
  • 1,514
1 vote
0 answers
373 views

ERROR No subscriber package version found for package id '0Ho<ID>'

We're getting this issue all of a sudden in on-going CICD pipelines(Gitlab). It was working fine till date and suddenly this error is coming with each build trigger Error - ERROR No subscriber package ...
user avatar
  • 2,761
1 vote
0 answers
355 views

Can i run specific test classes for my CI/Cd Process?Any Idea how?

I have implemented CI/CD Process and its working fine but taking 13 minutes in each org ( because currently i have implemented run all test classes ) So I want an idea from you guys which can be ...
user avatar
2 votes
2 answers
345 views

Package installation time is getting *drastically* vary, how to optimize it?

We have unlocked packages with CICD enabled. Sometime those package installation takes 5 mins and sometime goes till 30+ mins. Since I know it had been installed in 5 mins, why its getting weird ...
user avatar
  • 2,761
1 vote
2 answers
51 views

Second Generation Packaging Parter Business Org Question For CI CD

I have a quick question on the best practices for managing the Parter Business Org when developing Second Generation Packages. As Parter Business Org act as the Dev Hub for the second generation ...
user avatar
1 vote
1 answer
194 views

How can/should I do unlocked package version management?

I followed this Trailhead module (Build an Automated CI/CD Pipeline with GitLab) and have successfully created an unlocked package that has a CI/CD pipeline. There is this part (in the Trailhead ...
user avatar
0 votes
0 answers
156 views

Why are there default Apex classes in a newly created scratch org? superSort.cls and TrialCustomerPortalHomePageController.cls

I have a CI/CD pipeline and it creates a new scratch org for unit tests in the first stage. I pushed all codes of an unlocked package into the scratch org and run the unit tests. However, two other ...
user avatar
0 votes
2 answers
36 views

Same user id in scratch org as in Devhub

In my DevHub there is a Apex class that gets return value of an HTTP request based on the Id of a user that runs that Apex class. I would like to bring this to a scratch org. How can I have users of ...
user avatar
4 votes
1 answer
869 views

Is it possible to partially deploy flexipages with Sfdx?

I'm currently struggling to get our Salesforce into a version control system with the "source" metadata format. And, of course, I want this repo to be deployable. After about 16 ours of ...
user avatar
0 votes
1 answer
109 views

Implement CI/CD using Bitbucket/Git and Codeship

I'm trying to implement CI/CD using Bitbucket and Codeship(a CD tool like Jenkins) to achieve continuous deployment in Salesforce Orgs along with code versioning. I'm confused with the new folder ...
user avatar
  • 602
0 votes
1 answer
184 views

Full validation in change sets still needed in unlocked package installation?

My team would like to gradually replace change set deployment model with unlocked packages. I did some experiments and found out that installing package in an org is somehow like running partial ...
user avatar
2 votes
0 answers
639 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 ...
user avatar
4 votes
0 answers
202 views

Managed 2GP Package CI/CD

We're looking to adopt a CI/CD flow similar to this Salesforce diagram. The CI part is pretty much there but with 2GP all packages are created as beta packages which can't be upgraded in our Test/UAT ...
user avatar
  • 91
8 votes
1 answer
1k views

I get this LF will be replaced by CRLF when using git-bash

Full error looks like this: "The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in force-app/....." I know I can turn it off, and I am sure I ...
user avatar
3 votes
1 answer
2k views

Insufficient access rights on cross-reference id when reverting a flow in CI/CD pipeline

I'm super new to development workflow using Git and Visual Studio Code. In our company, the deployment of code and configurations are done via Azure Dev Ops CI/CD pipeline. When I deployed a new flow, ...
user avatar
  • 31
3 votes
1 answer
559 views

Deploy only modified metadata in GitLab to Org

I followed this Trailhead "Build an Automated CI/CD Pipeline with GitLab" and have successfully built a pipeline that can deploy [or install] a package into an Org each time I push some changes into ...
user avatar
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