The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
Emit new event when a Jenkins job sends a status notification via the notification plugin. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format 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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})