with Power Automate and Jenkins?
Emit new event when a Jenkins job sends a status notification via the notification plugin. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
power_automate: {
type: "app",
app: "power_automate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01`,
headers: {
Authorization: `Bearer ${this.power_automate.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jenkins: {
type: "app",
app: "jenkins",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.jenkins.$auth.api_url}/me/api/json`,
auth: {
username: `${this.jenkins.$auth.username}`,
password: `${this.jenkins.$auth.api_token}`,
},
})
},
})