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}`,
},
})
},
})
Emit new event when a Jenkins job sends a status notification via the notification plugin. See the documentation
Jenkins uses API keys for authentication. When you connect your Jenkins account, Pipedream securely stores the keys so you can easily authenticate to Jenkins APIs in both code and no-code steps.