- Go to https://api.slack.com/applications/new
- Click "Create New App" button and give it a name
- Choose Development Slack Team
- You will get a Client ID and Client Secret
- Add the Redirect URL, you can use the ngrok https://ngrok.com/
- Add the Request URL, you can use the ngrok https://ngrok.com/
- visiting the login page, http://localhost:3000/login
- Install Build Authorization Token Root Plugin
- Select trigger builds remotely and add a token
- And you can trigger the URL (JENKINS_URL/job/jobname/build?token=TOKEN_NAME)
- git clone slack-bot
- cd slack-bot
- npm init
- npm install
- vim button_bot.js and paste the Client ID and Client Secret
- job_url Insert your Jenkins's URL