Questions tagged [cicd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
7 views

How to overcome the error `Knowledge insufficient access rights on entity: KnowledgeLanguageConfig`?

In my CI/CD pipeline I see some strange error: Knowledge insufficient access rights on entity: KnowledgeLanguageConfig. This is very weird, since I received this error on post merge deployment and ...
Patlatus's user avatar
  • 16.4k
0 votes
0 answers
22 views

Where to find the latest version of the Vlocity_cme managed package?

Is there a way to, using bash script, to get the latest available Vlocity_cme package version ID? (04t). The ID is part of this page, but using wget you get an empty page, so that doesn't work. Is ...
Theodoor's user avatar
  • 441
0 votes
0 answers
30 views

Rollback(Back Promote)Changes through SFDX-Git-Delta deploy

Branching Strategy: In our project we have 3 main branches: Main, UAT & QA & we are using SFDX-Git-Delta plugin (SGD) deploy to promote incremental changes. Developers promote changes to ...
Rose 's user avatar
  • 121
0 votes
1 answer
34 views

sf auth:jwt:grant hanging - no terminal output

I have been working on creating a CICD pipeline with my developer org and github actions. I have done the following: Connected app created Profile added to connected app with API permissions. User ...
smedium's user avatar
1 vote
2 answers
72 views

Deleting a Flow via CI/CD - how?

I have a flow that was deployed to multiple production orgs via mdapi CI/CD process. This flow updates 2 fields. Turns out this was not a solution and I now need to delete all 3(the flow + the 2 ...
Irene's user avatar
  • 1,769
1 vote
0 answers
38 views

Second Generation Beta Package Creation is failing in Github Action

I'm trying to create a 2nd Gen package using Github Action (workflow dispatch Action). After I deployed and run the workflow it gave me an error while uploading the new package: The error is on the &...
Oubayda Samrouth's user avatar
0 votes
0 answers
89 views

GitLab pipeline template which includes pre & post destructive changes

I have read through the Q&A. There are links pointing to the GitLab YAML template here and this outdated blog where trailhead no longer there. The lack of documentation for this GitLab integration ...
compski's user avatar
  • 1,320
0 votes
1 answer
95 views

get metadata as *.object, not folder structure

How do i retrieve metadata, as .object files? Currently what i do is: use workbench or Package xml Generator to create a package.xml like this <?xml version="1.0" encoding="UTF-8&...
Luis Aguiar's user avatar
-3 votes
1 answer
381 views

System.TypeException: System.runAs can only be used with an active user [closed]

I am trying to deploy one UserStory from UAT to Prod in Copado, but receiving this error "System.TypeException: System.runAs can only be used with an active user" for one Test class. But i ...
Vidya's user avatar
  • 1
0 votes
0 answers
136 views

Cannot Authenticate via connected app

I am trying to setup a basic ci/cd pipeline and following a guide i found online that suggests authenticating via a connected app. I have created the connected app and uploaded the server.crt when i ...
user20850916's user avatar
0 votes
1 answer
97 views

Can we deploy Apex Trigger Handler class from one sandbox to other without its Test Class in Copado?

I have modified, one single line in an Apex Trigger Handler and i need to deploy to another sandbox without its test class, So may i please know how to deploy this in Copado? Thanks, Vidya
Vidya's user avatar
  • 1
1 vote
2 answers
155 views

Sandboxes often reshuffles files like page layouts making it less git-friendly

When refreshing Sandboxes I would prefer if all metadata is exactly copied from the source org, but rather we often see files being randomly reshuffled without their content changing when we do a full ...
Freddy's user avatar
  • 203
0 votes
1 answer
885 views

Deal with Connected App Consumer Key changing on Refresh

I am trying to set up continuous delivery with multiple sandboxes. There is one integration sandbox, where all developer sandboxes deploy to. After every release we refresh the developer sandboxes ...
Freddy's user avatar
  • 203
0 votes
1 answer
2k views

Error creating a scratch org: This command requires a dev hub org username set either with a flag or by default in the config

When creating a scratch org, I have this issue that works fine running on my local machine but not when I include in our scripts to run in the CI/CD. ERROR running force:org:create: This command ...
ebanster's user avatar
  • 103
4 votes
2 answers
601 views

CI/CD Benefits of using Scratch Org?

I tried to understand the benefits of using Scratch org for CI/CD, but still not quite get it. According to the Salesforce document: The scratch org is a source-driven and disposable deployment of ...
Wayne Ni's user avatar
  • 600
1 vote
1 answer
159 views

Create UserTeamMember in test classes

I'm trying to create a test class for this operation: List<UserTeamMember> listUserTeamMember = [Select id, ownerId, TeamMemberRole, OpportunityAccessLevel, userId from UserTeamMember where ...
Julien Souchi's user avatar
10 votes
1 answer
931 views

Do deployments affect end users? (performance)

We have a continuous delivery approach, each feature is pushed to production when it is ready. There can be 1 to 5 deployments per day. Does it affect Salesforce performance? I know that yes, but I ...
Piotr Gajek's user avatar
  • 2,595
3 votes
1 answer
126 views

How to optimize CI/CD for a medium size codebase/package with sfdx

We approached Salesforce development like modern software development. We have a medium sized Apex codebase (single unmanaged package), and on every pull request, we run CI (aka the test suite, ...
Andy Ray's user avatar
  • 1,459
1 vote
1 answer
204 views

Passing artifact name for Vlocity deployment validations

This is for Vlocity deployment using Github Actions. Scenario: In the code repo I have made a minor change in my Omniscript and I want to validate this change before I deploy. Following is the yml ...
SanJay's user avatar
  • 11
0 votes
1 answer
2k views

ECONNRESET when authenticating via sfdx auth:jwt:grant

I have configured below pre-requisites for JWT based authentication to Salesforce sandbox. ConnectedApp server.key Client Id I am trying to authenticate Salesforce sandbox from client's Jenkins ...
Swapnil Shrishrimal's user avatar
1 vote
2 answers
858 views

sfdx auth:jwt:grant: Unexpected arguments: -f

I am trying to connect Jenkins to the SF sandbox. I am stuck on the auth step, where I receive this kind of error: ERROR running auth:jwt:grant: Unexpected argument: Pipeline@tmp/secretFiles/e56a52e6-...
Oleksandr Honcharuk's user avatar
1 vote
1 answer
789 views

sfdx sgd-git-delta plugin not recognized in Jenkins pipeline [closed]

I have installed sfdx git delta plugin on my system. It works perfectly well when I execute locally on Git Bash / CMD / Visual Studio Code. But when I trigger the Jenkins pipeline, I see that sfdx ...
Swapnil Shrishrimal's user avatar
1 vote
0 answers
231 views

Run Checkmarx on code not in packaging org (too big for Community scanner)

I am consulting an ISV partner with their resubmission of the Salesforce Security Review. They ran the initial Checkmarx scan using the Partner Scanner on the code in their Packaging org, then fixed ...
Robert Sösemann's user avatar
1 vote
1 answer
821 views

How to know if a sfdx package is a second generation package (2GP)

I have gone trough the documentation about first and second generation packages to figure If our current package is a second generation package. I read the comparisons: https://developer.salesforce....
Thomas's user avatar
  • 2,294
0 votes
1 answer
1k views

Salesforce deployment using SFDX CLI, Jenkins and GitHub

I am new to Salesforce and SFDX CLI. I need to implement CI / CD for one of my client. To start with basic I created Dev Org using Visual Studio Code and committed same to GitHub. Integrated SFDX CLI ...
Swapnil Shrishrimal's user avatar
1 vote
1 answer
106 views

Is it possible to authenticate your packaging orgs using a connected app in your DevHub org using jwt auth flow?

We are using github actions and cumulusci as part of our ci/cd pipeline. In each of our repositories (packages in SF context), we have a .github/workflows folder and inside it are our yaml files that ...
Aggressive Pickle's user avatar
0 votes
1 answer
113 views

How do I actually get the git integration to work properly?

I want to have a 1:1 correspondence of the objects in Salesforce and the objects in our Git repo. Furthermore, I want to distinguish in our repo between our code, which has been carefully written line ...
ToonAlfrink's user avatar
0 votes
0 answers
335 views

sync git with salesforce, including deletions?

I'm starting with a new project and I'd like to start fresh. Unfortunately, for various reasons, my Salesforce instance is already cluttered up with a lot of metadata I would like Git to be my source ...
ToonAlfrink's user avatar
0 votes
0 answers
1k 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 ...
Peter Caitens's user avatar
0 votes
1 answer
511 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 ...
Rahul Allada's user avatar
1 vote
1 answer
1k 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 ...
Numaan Mohammad's user avatar
-1 votes
1 answer
355 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 ...
Yuvraj's user avatar
  • 1
-2 votes
2 answers
187 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?
Cristea Alexandru Catalin's user avatar
2 votes
1 answer
996 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 ...
SFDCDJ's user avatar
  • 1,834
1 vote
0 answers
90 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 ...
Aman Jain's user avatar
  • 121
0 votes
1 answer
108 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 ...
inbox outbox's user avatar
5 votes
1 answer
1k 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 ...
Andrea Voggenreiter's user avatar
0 votes
0 answers
102 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 ...
compski's user avatar
  • 1,320
1 vote
1 answer
277 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 ───── ────────────────────────────────── ───...
patryk's user avatar
  • 645
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
2 votes
2 answers
452 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 --...
Oussama Boumhaout's user avatar
1 vote
1 answer
346 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)? ...
jeninjames's user avatar
2 votes
2 answers
3k 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 ...
jeninjames's user avatar
0 votes
1 answer
380 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 ...
Luk En's user avatar
  • 1
1 vote
1 answer
4k 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 ...
Tyler Dahle's user avatar
  • 2,679
1 vote
1 answer
689 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:...
user81642's user avatar
  • 667
1 vote
1 answer
630 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 ...
Bahman.A's user avatar
  • 828
3 votes
0 answers
56 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 ...
Edmondo's user avatar
  • 1,712
1 vote
2 answers
1k 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 ...
user81642's user avatar
  • 667
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