Scroll to top

Automating Oracle Integration Cloud Project Deployments with Visual Builder Studio


Nikitha R - December 2, 2026

Reading Time: 9 minutes

Your integrations are built, tested and ready, but getting them from DEV to UAT and PROD is another story. OIC Gen 3 Projects keep integrations, connections, lookups and deployments neatly together, yet they leave teams asking: how do we promote a Project in a controlled, repeatable way, without manual rework?

The native Visual Builder Studio (VBS) Oracle Integration – Export/Import Integration steps don’t help here. They cannot reach integrations inside a Project, because Project content is served by a different REST endpoint family (/ic/api/integration/v1/projects/{PROJECT_ID}/…).

This blog shows how to close that gap with a Project-based CI/CD pipeline built from VBS build jobs, an Approval gate, and a VBS-hosted Git repository, calling the OIC Project REST APIs directly with curl from Unix Shell build steps.

What the Pipeline Does

The flow is deliberately simple:

  • A developer creates a Project Deployment in OIC, selecting only the integrations that are new or changed.
  • An Export job authenticates to the source instance, calls the Project export API for that deployment, and pushes the resulting .car file into a VBS Git repository.
  • A manual Approval stage pauses the pipeline before promotion.
  • On approval, an Import job pulls the same .car file from the repository and imports it into the target instance.

The pipeline looks like this:

Start → Export_Deployment_From_DEV → Approval → Import_Deployment_To_UAT

Using a Git repository as the hand-off point between the two jobs gives you a versioned, auditable copy of every deployment that has ever been promoted.

Rules to Know Before You Build

A few rules make the difference between a pipeline that works and one that fails with confusing errors.

  • Keep the Project Identifier identical across DEV, UAT and PROD. This avoids a project-mapping step between environments and is required for the scripts in this blog as written.
  • Every Deployment Label must be unique. Once a label has been imported into a target project, reusing it fails with HTTP 412. Use an incrementing convention such as Test001_Project_Deployment, Test002_Project_Deployment.
  • Deploy only what changed. Each new Deployment should contain only the integrations that are new or modified since the last promotion, not the entire project every time.
  • Identifiers are case-sensitive. Always copy the Project Identifier and Deployment Label from the OIC console instead of retyping them.

Prerequisites

Before starting, make sure you have the following:

  • A VBS Project with an associated Git repository. No VBS Workspace or Environment resource is required.
  • Write access to that Git repository.
  • Authentication details for both the source and target OIC instances, provided by your OIC/OCI administration team.

For each OIC instance you will use as a source or target, collect these six values:

  • IDCS_HOST – the Identity Domain host, used only for the OAuth token request
  • OIC_HOST – the shared design-time REST host for the region
  • INTEGRATION_INSTANCE – the OIC instance name, passed as a query parameter
  • SCOPE – the OAuth scope string for the instance
  • CLIENT_ID – the client identifier used to request an access token
  • CLIENT_SECRET – the matching client secret (handle as a secret)

You will also need the HTTPS clone URL of the VBS Git repository, available from the repository’s Clone menu.

The first four values are environment-specific but not secret, so they are written into the job script. CLIENT_ID and CLIENT_SECRET are supplied as job parameters.

Step 1: Create the Export Job

In your VBS Project, navigate to Builds → Jobs → Create Job and name it Export_Deployment_From_<SOURCE_ENV> (for example, Export_Deployment_From_DEV).

                                                             Creating the Export job in VBS.

A) Configure the Parameters

On the Parameters tab, add four parameters:

  • PROJECT_ID (String, Required, no default)
  • DEPLOYMENT_LABEL (String, Required, no default)
  • SOURCE_CLIENT_ID (String, Required) – the source instance’s client ID
  • SOURCE_CLIENT_SECRET (Password, Required) – the source instance’s client secret. Using the Password type keeps it masked in the UI and in build logs.

The Parameters tab of the Export job.

B) Add the Export Step

On the Steps tab, choose Add Step → Unix Shell and paste the script below, replacing the four CONFIG values with those of the source instance.

#!/bin/bash
set -e

# —- CONFIG (source instance) —-
IDCS_HOST=”<SOURCE_IDCS_HOST>”
SCOPE=”<SOURCE_SCOPE>”
OIC_HOST=”<SOURCE_OIC_HOST>”
INTEGRATION_INSTANCE=”<SOURCE_INTEGRATION_INSTANCE>”

DEPLOYMENT_FILENAME=”${PROJECT_ID}-${DEPLOYMENT_LABEL}.car”

echo “== Requesting OAuth token ==”
TOKEN_RESPONSE=$(curl -s -X POST “${IDCS_HOST}/oauth2/v1/token” \
-u “${SOURCE_CLIENT_ID}:${SOURCE_CLIENT_SECRET}” \
-H “Content-Type: application/x-www-form-urlencoded” \
-d “grant_type=client_credentials&scope=${SCOPE}”)

ACCESS_TOKEN=$(echo “$TOKEN_RESPONSE” | grep -o ‘”access_token”[[:space:]]*:[[:space:]]*”[^”]*”‘ | sed -E ‘s/.*:”([^”]*)”/\1/’)

if [ -z “$ACCESS_TOKEN” ]; then
echo “ERROR: Failed to obtain access token. Response:”
echo “$TOKEN_RESPONSE”
exit 1
fi

echo “== Exporting deployment ${DEPLOYMENT_LABEL} from project ${PROJECT_ID} ==”
HTTP_STATUS=$(curl -s -o “${DEPLOYMENT_FILENAME}” -w “%{http_code}” -X POST \
“${OIC_HOST}/ic/api/integration/v1/projects/${PROJECT_ID}/archive?integrationInstance=${INTEGRATION_INSTANCE}” \
-H “Authorization: Bearer ${ACCESS_TOKEN}” \
-H “Accept: application/octet-stream” \
-H “Content-Type: application/json” \
-d “{\”name\”: \”${PROJECT_ID}\”, \”code\”: \”${PROJECT_ID}\”, \”type\”: \”DEVELOPED\”, \”label\”: \”${DEPLOYMENT_LABEL}\”}”)

echo “HTTP Status: ${HTTP_STATUS}”

if [ “$HTTP_STATUS” -lt 200 ] || [ “$HTTP_STATUS” -ge 300 ]; then
echo “ERROR: Export failed. Response body:”
cat “${DEPLOYMENT_FILENAME}”
exit 1
fi

if [ ! -s “${DEPLOYMENT_FILENAME}” ]; then
echo “ERROR: Exported file is empty.”
exit 1
fi

ls -la “${DEPLOYMENT_FILENAME}”

The script does three things: it requests an OAuth token using the client credentials grant, calls the Project archive endpoint with the deployment label, and saves the response as a .car file named

<PROJECT_ID>-<DEPLOYMENT_LABEL>.car.

Important: the HTTP status check and the empty-file check are not optional. Without them, the job reports SUCCESSFUL even when the API call failed (for example, because of a wrong label or an authentication error), and an error response could be silently pushed into the repository as if it were a valid deployment file.

C) Add the Push-to-Repository Step

Add a second Unix Shell step to push the file to the VBS Git repository. Replace the repository URL and the Git identity values.

#!/bin/bash
set -e

# —- CONFIG —-
REPO_CLONE_URL=”<REPO_CLONE_URL>”
GIT_USER_NAME=”<TEAM_OR_SERVICE_GIT_NAME>”
GIT_USER_EMAIL=”<TEAM_OR_SERVICE_GIT_EMAIL>”
INTEGRATION_INSTANCE=”<SOURCE_INTEGRATION_INSTANCE>”

DEPLOYMENT_FILENAME=”${PROJECT_ID}-${DEPLOYMENT_LABEL}.car”

echo “== Cloning VBS repo ==”
git clone “${REPO_CLONE_URL}” repo_clone
cd repo_clone

mkdir -p deployments
cp -f “../${DEPLOYMENT_FILENAME}” “deployments/${DEPLOYMENT_FILENAME}”

git config user.email “${GIT_USER_EMAIL}”
git config user.name “${GIT_USER_NAME}”
git add “deployments/${DEPLOYMENT_FILENAME}”

if git diff –cached –quiet; then
echo “No change: this file is already in the repo with identical content.”
else
git commit -m “Add deployment ${DEPLOYMENT_FILENAME} (exported from ${INTEGRATION_INSTANCE})”
git push
fi

echo “== Done ==”

The mkdir -p command is safe to run on every build. It does nothing if the deployments folder already exists.

D) Test the Export Job on Its Own

Before wiring the job into a pipeline, run it manually with a known-good Project ID and Deployment Label. Go to Builds, select the job and choose Build Now. A healthy run ends with Done and shows an HTTP Status of 200.

A successful standalone Export run (user, client ID and tenant URLs masked).

Step 2: Create the Import Job

Create a second job named Import_Deployment_To_<TARGET_ENV> (for example, Import_Deployment_To_UAT).

A) Configure the Parameters

Use the same PROJECT_ID and DEPLOYMENT_LABEL parameter names as the Export job, so the pipeline recognizes them as shared inputs. The credentials are deliberately named differently:

  • PROJECT_ID (String, Required)
  • DEPLOYMENT_LABEL (String, Required)
  • TARGET_CLIENT_ID (String, Required)
  • TARGET_CLIENT_SECRET (Password, Required)

Naming the credentials SOURCE_* in one job and TARGET_* in the other ensures a single pipeline run can never mix up source and target credentials.

B) Retrieve the Deployment from the Repository

#!/bin/bash
set -e

REPO_CLONE_URL=”<REPO_CLONE_URL>”
DEPLOYMENT_FILENAME=”${PROJECT_ID}-${DEPLOYMENT_LABEL}.car”

echo “== Cloning VBS repo ==”
git clone “${REPO_CLONE_URL}” repo_clone

if [ ! -f “repo_clone/deployments/${DEPLOYMENT_FILENAME}” ]; then
echo “ERROR: deployments/${DEPLOYMENT_FILENAME} not found in the repo.”
echo “Check PROJECT_ID and DEPLOYMENT_LABEL, and confirm the Export job has completed successfully.”
exit 1
fi

cp “repo_clone/deployments/${DEPLOYMENT_FILENAME}” “${DEPLOYMENT_FILENAME}”
ls -la “${DEPLOYMENT_FILENAME}”

C) Import the Deployment into OIC

This step uses the target instance’s values. The token request is identical to the export script, so only the import call is shown in full.

#!/bin/bash
set -e

# —- CONFIG (target instance) —-
IDCS_HOST=”<TARGET_IDCS_HOST>”
SCOPE=”<TARGET_SCOPE>”
OIC_HOST=”<TARGET_OIC_HOST>”
INTEGRATION_INSTANCE=”<TARGET_INTEGRATION_INSTANCE>”

DEPLOYMENT_FILENAME=”${PROJECT_ID}-${DEPLOYMENT_LABEL}.car”

# … request the OAuth token exactly as in the export script,
# using TARGET_CLIENT_ID and TARGET_CLIENT_SECRET …

echo “== Importing ${DEPLOYMENT_FILENAME} ==”
HTTP_STATUS=$(curl -s -o response.json -w “%{http_code}” -X POST \
“${OIC_HOST}/ic/api/integration/v1/projects/archive?integrationInstance=${INTEGRATION_INSTANCE}” \
-H “Authorization: Bearer ${ACCESS_TOKEN}” \
-H “Accept: application/json” \
-F “file=@${DEPLOYMENT_FILENAME}”)

echo “HTTP Status: ${HTTP_STATUS}”
cat response.json
echo “”

if [ “$HTTP_STATUS” -lt 200 ] || [ “$HTTP_STATUS” -ge 300 ]; then
echo “ERROR: Import failed.”
if [ “$HTTP_STATUS” -eq 412 ]; then
echo “HINT: This deployment label has already been applied to this project on the target.”
echo “Create a new deployment in OIC with a new, unique label and re-run the pipeline.”
fi
exit 1
fi

echo “== Import succeeded ==”

Note the built-in hint for HTTP 412. It turns the most common failure into a one-line instruction for whoever is running the pipeline.

D) Test the Import Job on Its Own

Run the job manually with the same Project ID and Deployment Label you used in the export test. The file must already exist in the repository. A healthy run ends with Import succeeded and an HTTP Status of 200.


 A successful standalone Import run, ending with HTTP Status 200 (user, client ID and tenant details masked).

Step 3: Build the Pipeline

With both jobs validated, wire them together.

  • Go to Builds → Pipelines → Create Pipeline and name it Promote_<SOURCE_ENV>_to_<TARGET_ENV> (for example, Promote_DEV_to_UAT).
  • Open the pipeline and click Config.
  • Add the Export job as the first stage after Start.
  • Add an Approval stage and configure the approver(s), such as the integration owner or a team lead.
  • Add the Import job after the Approval stage and save.

The pipeline: Start → Export → Approval → Import.

How Parameters Flow Through the Pipeline

Because PROJECT_ID and DEPLOYMENT_LABEL are named identically as Required parameters in both jobs, VBS collects the union of required parameters across the pipeline and prompts for them once, at trigger time. The same values are then passed automatically to every stage that declares those names.

Step 4: Run the Pipeline

  • Open the pipeline and start a manual run.
  • In the parameters dialog, enter the Project ID and Deployment Label exactly as they appear in the source OIC instance.
  • Export runs first. If it fails, the pipeline stops and the Approval is never triggered.
  • On success, the pipeline pauses at Approval, where the approvers review and approve.
  • On approval, Import runs automatically with the same values, with no re-entry required.

After the Import: Manual Steps

Connections travel with the Project, but their environment-specific credentials do not. The following steps are performed directly in the target OIC console and are intentionally outside the pipeline:

  • Open each connection in the imported project and configure its credentials for that environment.
  • Test each connection.
  • Activate the imported integration(s) once the connections are confirmed working.

Especially for PROD, keep activation a deliberate, separate manual step even though the pipeline already has an Approval gate. It gives you a second checkpoint before an integration goes live.

Troubleshooting

  • HTTP 412 on import (matching deployment already present): This exact label has already been imported into the target project. The check is based on the label, not on whether the integrations still exist, so deleting them does not clear it. Create a new deployment with a new unique label and re-run.
  • Export fails because the project or label is not found: Check for a case mismatch in the Project ID, or a Deployment Label that does not match an existing deployment in that project.
  • Export job is green but the file in the repo looks tiny or wrong: Confirm the HTTP status and empty-file checks are present exactly as given in the export script.
  • Import fails because the file is not found in the repo: Confirm the Export job completed successfully for the same Project ID and Label, and that both jobs point to the same repository URL.
  • “Nothing to commit” in the export push step: This is expected when re-running an export with identical inputs. The file already exists with the same content, and the job does not fail.
  • 401 Unauthorized: The credentials for that instance are missing permission or are not yet active. Escalate to your OIC/OCI administration team rather than editing the scripts.
  • Approval stage did not trigger: Expected if the Export stage failed, since VBS does not run downstream stages after an upstream failure. Check the Export build log first.
  • Long “Waiting to obtain executor” delay: This is VBS build-agent queuing, not a script problem. Wait, or check with your VBS administrator to see if it persists.

Conclusion

By combining VBS build jobs, a Git repository and the OIC Project REST APIs, you get a repeatable, approval-gated way to promote OIC Projects across environments, something the native VBS steps cannot do for Project-scoped content. Keeping deployments small and uniquely labeled, validating each job on its own before building the pipeline, and leaving connection credentials and activation as deliberate manual steps all help keep promotions safe and predictable.

One caveat worth stating plainly: this approach has been validated end-to-end on a single OIC instance, covering export, import and incremental updates with a new deployment label. A genuinely separate source and target instance has not yet been tested. Since the mechanism is the same REST API regardless of which instance is addressed, it is expected to behave identically, but verify it in your own landscape before relying on it for PROD.

If you want to extend this further, a natural next step is to move the client ID and secret out of job parameters into a managed secret store, and to add notifications to the Approval stage so approvers are alerted as soon as an export completes.

Need help implementing this pipeline or automating your OIC deployments? Get in touch with us to speak with our integration experts.

Nikitha R

Nikitha holds a Bachelor’s degree with Honours in Information Science and Engineering from New Horizon College of Engineering and specializes in Oracle Visual Builder Studio (VBCS), Oracle Integration Cloud (OIC), and PL/SQL, working on Oracle Fusion Cloud application extensions, UI enhancements, and development.

Author avatar

Nikitha R

Nikitha holds a Bachelor’s degree with Honours in Information Science and Engineering from New Horizon College of Engineering and specializes in Oracle Visual Builder Studio (VBCS), Oracle Integration Cloud (OIC), and PL/SQL, working on Oracle Fusion Cloud application extensions, UI enhancements, and development.

Related posts

Post a Comment

Your email address will not be published. Required fields are marked *


error: This website’s content is protected. Please contact us if you’d like to reference our work.