with Jenkins and Daktela?
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: {
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
daktela: {
type: "app",
app: "daktela",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.daktela.$auth.instance_url}/api/v6/whoim.json`,
params: {
accessToken: `${this.daktela.$auth.access_token}`,
},
})
},
})