Tagged DevCS

Scheduling with Developer Cloud Service (DevCS) the Start/Stop Sequence of an Oracle Analytics Cloud (OAC) Instance

Oracle Developer Cloud Service (DevCS) is a CI/CD environment provided by Oracle for cloud customers. It is almost free, you only pay for the storage and the compute utilised when jobs are run.

Oracle Analytics Cloud (OAC) is a powerful and proactive reporting tool.


Builds are the well known tasks typical in Jenkins:

Start OAC Instance Job

Create a new build job, go to Configure->Steps, from the [Add Step] dropdown listbox select “PSMCli” and “Unix Shell”.

In the PSMCli step provide user, password, identity-domain id (the id, not the name), region and output format.

In the Unix Shell step put:

psm AUTOANALYTICSINST start-service -s [instancename]

Now click on the “Settings” icon (the gears), go to Triggers tab and configure the scheduling utilising cronjob format:

Stop OAC Instance Job

Do same steps than above, except for the command systax which is:

 psm AUTOANALYTICSINST start-service -s [instancename]

And if you need to execute jobs depending ones on the others, you can utilise pipelines!


Create a build step, type one of the following and see the output (example):

psm help
psm [servicetype] help

Hope it helps! 🙂

Oracle IdCS Tips Part II: Simple Workflow for Creating Registered Users in IdCS with Node.js

In this post we explained how to create users in IdCS with the REST API. Typically you would like to put an approval process in between, here we explain a simple solution for those use cases where you don’t have or don’t want to put in the picture other pieces such as BPM, workflow or other typical engines.


Create a Node.js gadget that sends an email to an approval email account with a message body that exposes an Accept and a Reject Button. The Accept button should call the create user procedure explained here.

Replace the text in bold with your own values and change the default buttons actions to a call to an exposed service that implements the create user procedure mentioned.

const nodemailer = require('nodemailer');

let transporter = nodemailer.createTransport({

host: 'estibijaif.oracol.com',

port: 465,

secure: 'estibijaif.oracol.com',

auth: {

user: 'xxxxxx@oracol.com',

pass: 'morefoolsthanbottles'



let message = {

from: 'MRO  <xxxxxx@oracol.com>',

to: 'Recipient <xxxxxx@oracol.com>',

subject: 'New user request',

text: 'Hello!',

html: '<head><style>.button {background-color: #4ecdc4;border-color: #45b7af;border-radius: 5px;text-align: center;padding: \

10px;}.button a {color: #ffffff;display: block;font-size: 14px;text-decoration: none;text-transform: uppercase;}</style> \

</head>A new user alextorrijo@acme.com from Acme has been requested, please accept or reject with the buttons as follows<table> \

<tr><td style="background-color: #4ecdc4;border-color: #4c5764;border: 2px solid #45b7af;padding: 10px;text-align: center;"> <a style="display: block;color: #ffffff;font-size: 12px;text-decoration: none;text-transform: uppercase;" href="https://javiermugueta.wordpress.com">Accept</a></td></tr><tr><td style="background-color: #4ecdc4;border-color: #4c5764;border: 2px solid #45b7af;padding: 10px;text-align: center;"><a style="display: block;color: #ffffff;font-size: 12px;text-decoration: none;text-transform: uppercase;" href="https://javiermugueta.wordpress.com">Reject</a></td></tr></table>'


transporter.sendMail(message, (err, info) => {

if (err) {

console.log('Error occurred. ' + err.message);

return process.exit(1);


console.log('Message sent: %s', info.messageId);

This Node.js procedure can be developed in Oracle Developer Cloud Service (DevCS) and deployed in Oracle Application Container Cloud Service (ACCS) easily.
See also this post
Enjoy 😉


Oracle Developer Cloud Service Local Maven Repository and Oracle Maven Repository

If your project utilizes Oracle libraries you can configure Oracle Maven repository under Configure Buil Job|Environment with your OTN credentials.


If your project utilizes other Oracle libraries you can upload them to the project’s local Maven reposository.


In additio must update your pom with references to the local maven repo such as:















            <name>SCFCOT Maven Repository</name>



This settings can help you solve issues such as:

[FATAL] Non-resolvable parent POM for com.xxx:yyy:0.0.1-SNAPSHOT: Could not find artifact com.oracle.weblogic.archetype:wls-common:pom:12.2.1-2-0 in central (https://repo.maven.apache.org/maven2) and ‘parent.relativePath’ points    at  no local POM @ line xxx, column yyy


Enjoy 😉