---
description: Install private Capawesome Insiders npm packages in your Jenkins pipelines. Configure access tokens and npm registry for Capacitor CI/CD builds.
title: Integrate Capawesome Insiders with Jenkins - Capawesome
image: https://capawesome.io/docs/assets/images/social/insiders/integrations/jenkins.png
---

[ Skip to content](#jenkins) 

[ 🎉 Introducing **Capawesome Platform** — one platform for Live Updates, Native Builds, App Store Publishing, and Insider SDKs.](https://capawesome.io) 

* [  Formbricks ](/docs/plugins/formbricks/)
* [  Geocoder ](/docs/plugins/geocoder/)
* [  Google Sign-In ](/docs/plugins/google-sign-in/)
* [  libSQL ](/docs/plugins/libsql/)
* [  Live Update ](/docs/plugins/live-update/)
* [  Managed Configurations ](/docs/plugins/managed-configurations/)
* [  Media Session ](/docs/plugins/media-session/)
* [  ML Kit ](/docs/plugins/mlkit/)
* [  NFC ](/docs/plugins/nfc/)
* [  OAuth ](/docs/plugins/oauth/)
* [  Pedometer ](/docs/plugins/pedometer/)
* [  Photo Editor ](/docs/plugins/photo-editor/)
* [  PostHog ](/docs/plugins/posthog/)
* [  Printer ](/docs/plugins/printer/)
* [  Purchases ](/docs/plugins/purchases/)
* [  RealtimeKit ](/docs/plugins/realtimekit/)
* [  Screen Orientation ](/docs/plugins/screen-orientation/)
* [  Screenshot ](/docs/plugins/screenshot/)
* [  Secure Preferences ](/docs/plugins/secure-preferences/)
* [  Speech Recognition ](/docs/plugins/speech-recognition/)
* [  Speech Synthesis ](/docs/plugins/speech-synthesis/)
* [  Share Target ](/docs/plugins/share-target/)
* [  Square Mobile Payments ](/docs/plugins/square-mobile-payments/)
* [  SQLite ](/docs/plugins/sqlite/)
* [  Superwall ](/docs/plugins/superwall/)
* [  Torch ](/docs/plugins/torch/)
* [  Wifi ](/docs/plugins/wifi/)
* [  Zip ](/docs/plugins/zip/)
* [  Cloud ](/docs/cloud/)
* [  Live Updates ](/docs/cloud/live-updates/)
* Advanced
* Integrations
* [  Native Builds ](/docs/cloud/native-builds/)
* [  Configuration ](/docs/cloud/native-builds/configuration/)
* [  Environments ](/docs/cloud/native-builds/environments/)
* Guides
* [  Sample Projects ](/docs/cloud/native-builds/sample-projects/)
* [  Troubleshooting ](/docs/cloud/native-builds/troubleshooting/)
* [  Automations ](/docs/cloud/automations/)
* [  Assist ](/docs/cloud/assist/)
* Account
* Organizations
* [  Organization and User Management ](/docs/cloud/organizations/memberships/)
* [  Single Sign-On (SSO) ](/docs/cloud/organizations/sso/)
* [  Teams ](/docs/cloud/organizations/teams/)
* [  Two-Factor Authentication ](/docs/cloud/organizations/two-factor-authentication/)
* [  Integrations ](/docs/cloud/integrations/)
* [  License Keys ](/docs/cloud/license-keys/)
* [  Webhooks ](/docs/cloud/webhooks/)
* [  Pricing ](https://capawesome.io/pricing/)
* [  FAQ ](/docs/cloud/faq/)
* [  Support ](/docs/cloud/support/)
* [  Contributing ](/docs/contributing/)
* [  LLMs ](/docs/llms/)
* [  Insiders ](/docs/insiders/)
* [  Pipeline Configuration ](#pipeline-configuration)
* [  Vercel ](/docs/insiders/integrations/vercel/)
* [  License ](https://capawesome.io/legal/eula/)
* [  Support ](/docs/insiders/support/)
* [  FAQ ](/docs/insiders/faq/)
* [  Blog ](/blog/)
* Categories

* [  Pipeline Configuration ](#pipeline-configuration)

# Jenkins[¶](#jenkins "Permanent link")

You can use private Capawesome npm packages within your [Jenkins](https://www.jenkins.io/) pipelines by configuring the Capawesome npm registry. This guide shows you how to set up authentication to access the private packages from the Capawesome Insiders program.

## Preparation[¶](#preparation "Permanent link")

### Create Jenkins Credentials[¶](#create-jenkins-credentials "Permanent link")

[Get your license key](/docs/insiders/faq/#where-can-i-find-my-license-key) and add it to your Jenkins instance as a secret text credential with the ID `CAPAWESOME_NPM_REGISTRY_TOKEN` as described in [Using credentials](https://www.jenkins.io/doc/book/using/using-credentials/).

Keep your license key secure 

Never commit your license key directly to your repository and always use environment variables to store sensitive information like authentication tokens.

## Pipeline Configuration[¶](#pipeline-configuration "Permanent link")

### Configure the npm registry[¶](#configure-the-npm-registry "Permanent link")

Add the following script to your Jenkins pipeline **before** installing npm dependencies:

`[](#%5F%5Fcodelineno-0-1)withCredentials([string(credentialsId: 'CAPAWESOME_NPM_REGISTRY_TOKEN', variable: 'CAPAWESOME_NPM_REGISTRY_TOKEN')]) {
[](#%5F%5Fcodelineno-0-2)    sh '''
[](#%5F%5Fcodelineno-0-3)        echo "@capawesome-team:registry=https://npm.registry.capawesome.io" >> .npmrc
[](#%5F%5Fcodelineno-0-4)        echo "//npm.registry.capawesome.io/:_authToken=${CAPAWESOME_NPM_REGISTRY_TOKEN}" >> .npmrc
[](#%5F%5Fcodelineno-0-5)    '''
[](#%5F%5Fcodelineno-0-6)}
`

This will automatically configure npm to use the Capawesome registry for `@capawesome-team` packages during Jenkins builds.

### Example[¶](#example "Permanent link")

Here's a complete example of a Jenkins pipeline that builds an Ionic app using private Capawesome packages:

`[](#%5F%5Fcodelineno-1-1)pipeline {
[](#%5F%5Fcodelineno-1-2)    agent any
[](#%5F%5Fcodelineno-1-3)
[](#%5F%5Fcodelineno-1-4)    environment {
[](#%5F%5Fcodelineno-1-5)        NODE_VERSION = '20'
[](#%5F%5Fcodelineno-1-6)    }
[](#%5F%5Fcodelineno-1-7)
[](#%5F%5Fcodelineno-1-8)    stages {
[](#%5F%5Fcodelineno-1-9)        stage('Setup') {
[](#%5F%5Fcodelineno-1-10)            steps {
[](#%5F%5Fcodelineno-1-11)                // Install Node.js
[](#%5F%5Fcodelineno-1-12)                sh '''
[](#%5F%5Fcodelineno-1-13)                    curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | sudo -E bash -
[](#%5F%5Fcodelineno-1-14)                    sudo apt-get install -y nodejs
[](#%5F%5Fcodelineno-1-15)                '''
[](#%5F%5Fcodelineno-1-16)            }
[](#%5F%5Fcodelineno-1-17)        }
[](#%5F%5Fcodelineno-1-18)
[](#%5F%5Fcodelineno-1-19)        stage('Configure Registry') {
[](#%5F%5Fcodelineno-1-20)            steps {
[](#%5F%5Fcodelineno-1-21)                withCredentials([string(credentialsId: 'CAPAWESOME_NPM_REGISTRY_TOKEN', variable: 'CAPAWESOME_NPM_REGISTRY_TOKEN')]) {
[](#%5F%5Fcodelineno-1-22)                    sh '''
[](#%5F%5Fcodelineno-1-23)                        echo "@capawesome-team:registry=https://npm.registry.capawesome.io" >> .npmrc
[](#%5F%5Fcodelineno-1-24)                        echo "//npm.registry.capawesome.io/:_authToken=${CAPAWESOME_NPM_REGISTRY_TOKEN}" >> .npmrc
[](#%5F%5Fcodelineno-1-25)                    '''
[](#%5F%5Fcodelineno-1-26)                }
[](#%5F%5Fcodelineno-1-27)            }
[](#%5F%5Fcodelineno-1-28)        }
[](#%5F%5Fcodelineno-1-29)
[](#%5F%5Fcodelineno-1-30)        stage('Install Dependencies') {
[](#%5F%5Fcodelineno-1-31)            steps {
[](#%5F%5Fcodelineno-1-32)                sh 'npm ci'
[](#%5F%5Fcodelineno-1-33)            }
[](#%5F%5Fcodelineno-1-34)        }
[](#%5F%5Fcodelineno-1-35)
[](#%5F%5Fcodelineno-1-36)        stage('Build') {
[](#%5F%5Fcodelineno-1-37)            steps {
[](#%5F%5Fcodelineno-1-38)                sh '''
[](#%5F%5Fcodelineno-1-39)                    npx cap sync
[](#%5F%5Fcodelineno-1-40)                    npm run build
[](#%5F%5Fcodelineno-1-41)                '''
[](#%5F%5Fcodelineno-1-42)            }
[](#%5F%5Fcodelineno-1-43)        }
[](#%5F%5Fcodelineno-1-44)    }
[](#%5F%5Fcodelineno-1-45)
[](#%5F%5Fcodelineno-1-46)    post {
[](#%5F%5Fcodelineno-1-47)        always {
[](#%5F%5Fcodelineno-1-48)            // Clean up .npmrc file
[](#%5F%5Fcodelineno-1-49)            sh 'rm -f .npmrc'
[](#%5F%5Fcodelineno-1-50)        }
[](#%5F%5Fcodelineno-1-51)    }
[](#%5F%5Fcodelineno-1-52)}
`

May 7, 2026 

 Back to top 