Skip to content

Github action to trigger an on-prem jenkins buildWithParameters

Notifications You must be signed in to change notification settings

stigmelling/jenkins-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-action

This action triggers an on-prem jenkins job using buildWithParameters

Inputs

jenkinsUrl

Required URL to Jenkinsserver.

username

Required Username on JenkinsServer.

token

Required Token attached to user in JenkinsServer.

job

Required Name of job.

params

JsonString with "name":"value" params. Sample: '{"paramName":"value"}'

Outputs

time

The time we greeted you.

Example usage

uses: stigmellingjenkins-action@v1
with:
  jenkinsUrl: 'https://yourjenkinsserver.com'
  username: 'username'
  token: '123456....'
  job: 'name_of_job_in_jenkins'
  params: '{"paramName": "paramValue"}'

Jenkins configuration

Add API-token to user profile.

jenkins.png

About

Github action to trigger an on-prem jenkins buildWithParameters

Resources

Stars

Watchers

Forks

Packages

No packages published