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
0answers
18 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 ...
7
votes
0answers
46 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
31 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
66 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
66 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 ...
0
votes
0answers
163 views

sfdx mdapi deployment with more metadata in deployment directory fails (Not in package.xml)

My deployment into a traditional org using sfdx force:mdapi:deploy fails, when I do not specify all the metadata in my package.xml Deployment directory looks like: . ├── classes │   ├── TestDep2.cls ...
1
vote
0answers
36 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 ...
1
vote
1answer
331 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
262 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
110 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 ...
3
votes
1answer
94 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 ...
2
votes
1answer
426 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
79 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
410 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 ...
5
votes
2answers
153 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
74 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
54 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
68 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
896 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 ...
2
votes
1answer
383 views

Jenkins Pipeline - sfdx folder not found

I'm trying to setup a Jenkins Pipeline for our SFDX CI process on a Jenkins instance. I've successfully added the custom tool I can successfully create a new scratch org via ${toolbelt} folder as ...
8
votes
2answers
638 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
231 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
270 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
69 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
2k 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
209 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 ...
2
votes
1answer
621 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 ...
6
votes
1answer
781 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
81 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
597 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....
5
votes
1answer
59 views

Is there a way to refresh only changes from a specific developer in the Force.com IDE (Eclipse)?

I have a question about the Force.com IDE in Eclipse along with SVN (subclipse). For the sake of this question, we have two developers, Harry and Sally, working in the same developer org. They both ...
4
votes
1answer
448 views

Jenkins Salesforce CI server setup

I have a simple doubt and wanted to get community perspective. I have set up Jenkins for all my Salesforce deployments with Force.com Migration tool. Now it works properly on my local machine without ...
1
vote
1answer
123 views

Build apex code locally

I'm trying to configure jenkins as continuous integration server with ant migration tool, so i'm searching information in how can i build apex code from jenkins, so since now the only i've found is ...
1
vote
1answer
395 views

Jenkins + Ant Migration Tool: Caused by: com.sforce.ws.ConnectionException

I'm trying to configure deploying my sfdc metadata using JenkinsCI but in case I see next error: deployCodeCheckOnly: parsing buildfile jar:file:/usr/share/ant/lib/ant-salesforce.jar!/com/salesforce/...
12
votes
4answers
5k views

Deploy incremental changes using Github and Jenkins

We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub. We would like to improve ...
2
votes
0answers
594 views

Ant Migration Tool: INVALID_OPERATION - INVALID_OPERATION:Too many files in zip

Now I'm trying to deploy bunch of custom objects to my Developer Org. using Ant Migration Tool. All these custom objects are from our Production org, and the final goal is to setup CI in our ...
1
vote
0answers
168 views

How to Make Https Request From Salesforce to Flipkart

Hi guys I'm trying to generate access token for Flipkart Application from Salesforce. When I run this below command in curl I'm able to get Access Token curl -u 52a83780666645a39a6b57103657866a9069:...
17
votes
6answers
2k views

How to keep sandbox in sync with changes from other developers?

We are a team of 9 developers, working on a large project and commits are made to master branch all the time. When I needed to work on any new enhancement I used to pull everything from master branch ...
5
votes
2answers
253 views

Continuous Integration in salesforce

I am planning to implement continuous integration using Git,Jenkins and Github in salesforce.My query is regarding the repository structure.We have 3 salesforce environments Production,QA and ...
1
vote
0answers
22 views

Migration tool took more than the expected time to finish the deployment

Validations and deployments via migration tool to a sandbox took more than the expected time to finish the deployment. Total deployment/validation time supposed to be roughly 30 minutes and suddenly ...
3
votes
2answers
502 views

Apex Continuation is causing “Unable to restore input value state - state value missing for component…”

Apex Continuation is causing "Unable to restore input value state - state value missing for component..." This happens when a continuation callout is made on the action call of a command Button and ...
2
votes
3answers
1k views

How does a Salesforce Developer keep their developer environment (GIT and Sandbox) up to date with the constant changes made directly in production?

Looking for suggestions on: GIT branching/pull/merge best practices Deployment best practices Automation tips I've found articles about Continous Integration but generally they are for DEV->QA or ...
1
vote
2answers
2k views

Deployment Failed: profiles/Admin.profile — Error: Unknown user permission: LightningExperienceUser

In Winter '16, Salesforce rolled out the Lightning Experience. This can be optionally enabled for particular profiles. Initially this is not available for orgs that are using person accounts. ...
5
votes
1answer
3k views

Building package.xml for Continuous Integration Or Ant Deployment

I am in the process of setting up version control and automated builds using Git and ANT and eventually we might setup Jenkins for continuous integration. My plan is to utilize Git branches by ...
0
votes
2answers
328 views

What goes into a feature branch for CumulusCI

I'm looking to setup continuous integration, but getting stumped with our custom solution. I'm starting to look into CumulusCI managed by Salesforce Foundation. I'm having difficulty finding what "a ...
0
votes
1answer
1k views

Team Foundation Server and Force.com Migration tool , problems with antlib:com.salesforce:deploy

I am trying to build the salesforce project on Visual Studio Online - TFS (hosted) server. I use GIT as source control and have a simple build file <project name="Sample usage of Salesforce Ant ...
2
votes
1answer
1k views

I am not able to pass bamboo variables in build.xml . What is missing?

I have declared global variable in bamboo as sf_username and sf_password This is my job (ANT job in bamboo) :- deployCode -Dsfdc.username = ${bamboo.sf_username} -Dsfdc.password = ${bamboo....
2
votes
1answer
260 views

Preferrered Salesforce CI / deployment solutions

I am looking at various Salesforce CI / deployment solutions that at least: Should be able to deploy based on a custom selection of metadata changes and fixed set of changes (deploy on newest source ...
0
votes
1answer
124 views

CSV as Static Resource, Windows and newline characters not recognized

In our application we use Static Resources to store CSV files that contain record definitions. We have a CSV parser in Apex which usually works fine and correctly reads and upserts records when we ...
-2
votes
1answer
414 views

Has anyone used Cumulus CI with Bamboo for Salesforce Continuous Integraiton?

I am trying to set up Cumulus CI with Bamboo for salesforce continues integration. Cumulus CI works well with codeship but wants to configure it using Bamboo