- Two build pipelines
Step 1: Clone the repository code.
$ git clone https://github.com/oracle-cloud-infra/oci-devops-cascaded-pipelines.git
Step 2: Change to function directory.
$ cd oci-devops-cascaded-pipelines/same-region/trigger-build-from-build/node-function
Step 3:
In func.js
, update buildPipelineId
and displayNamePrefixForNewRun
with appropriate values as below.
const buildPipelineId = "<target-build-pipeline-ocid>"
const displayNamePrefixForNewRun = "AutoTriggeredCascadedPipeline_";
Step 4: Deploy the function with below command.
$ fn -v deploy --app <app-name>
Step 1:
Open Menu > Observability & Management
> Service Connectors
Step 2:
Set Service Connector Source as Logging
and Target as Functions
Step 3:
Configure Source as below
- Choose Compartment, Log Group, Logs of your DevOps Project.
- set
data.buildPipelineId
to the previous pipeline OCID as above. - set
data.message
to the last successful unique log message likeCompleted Build stage.
Step 4:
Configure Target with Function Application
and Function
as trigger-build-pipeline-from-build-pipeline
as below