Skip to content

isalew/sfdx-ci-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

SFDX CI Demo

Demonstrating the use of Salesforce DX with a Jenkins CI server.

CI Server Setup

Download the repo

$ git clone https://github.com/isalew/sfdx-ci-demo
$ cd sfdx-ci-demo

Build a docker image from the project Dockerfile

$ docker build -t isalew/sfdx-ci .

Execute a container from the docker image mapped to a local volume

$ docker run -d -p 8080:8080 -v ~/repos/sfdc/sfdx/repos/sfdx-ci-demo:/sfdx-ci-demo --name sfdx-ci isalew/sfdx-ci

Grab the initial admin password for Jenkins from the install logs

$ docker logs -f ci
# Copy the initial password from the log file
# Open jenkins at `http://localhost:8080`, enter the initial password, and setup your admin user

Setup ssh for easier git repository access

$ docker exec -it ci bash
$ root@########:/# cd ~/.ssh/
$ ssh-keygen -t rsa -C 'admin@sfdx-cli'
$ cat id_rsa.pub
# Copy the public key to your github repo

Additional Resources

About

A simple demo using sfdx with jenkins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published