Skip to content

Jenkins Status Extension for Visual Studio Code (Once changes in this fork have been incorporated in the original extension, this will be removed)

License

Notifications You must be signed in to change notification settings

eramitmittal/vscode-jenkins-status

 
 

Repository files navigation


Read-only Logo

What's new in Jenkins Status 3

  • Adds Multi-root Support
  • Adds HTTPS Support
  • Adds Authentication Support

Jenkins Status

It adds an area in the status bar, indicating the build status for any Jenkins job. Specially useful if you want to connect a project with its CI server.

Jenkins Status (fork)

This is a fork of original project http://github.com/alefragnani/vscode-jenkins-status and will be removed once functionality in this fork gets adopted by the original project

What's different from original project

  • Adds multiple jenkins job Support for e.g. if you want to generate the url on the basis of git branch name
  • Adds dynamic generation of jenkins config Support
  • Adds in-progress Support
  • Adds monitor for job from all workspace roots
  • improved status tooltip

Features

View the Jenkins build status of your project inside Visual Studio Code.

screenshot

It is automatically enabled if you have a .jenkins or .jenkinsrc.js file in the root folder of your project. The only required information is the url pointing to your Jenkins job.

If you need authentication, just add username and password_or_token in the .jenkins file and you are ready to go.

.jenkins file

{
    "url": "http://127.0.0.1:8080/job/myproject/",
    "username": "jenkins_user",
    "password": "jenkins_password_or_token"
}

or

[{
    "url": "http://127.0.0.1:8080/job/myproject/",
    "name": "Jenkins Build",
    "username": "jenkins_user",
    "password": "jenkins_password_or_token"
},
{
    "url": "http://127.0.0.1:8080/job/myprojectTests/",
    "name": "Jenkins Acceptance Tests",
    "username": "jenkins_user",
    "password": "jenkins_password_or_token"
}]

.jenkinsrc.js file

// can also return a promise of required JSON structure
module.exports = [{
    "url": "http://127.0.0.1:8080/job/myproject/",
    "name": "Jenkins Build",
    "username": "jenkins_user",
    "password": "jenkins_password_or_token"
},
{
    "url": "http://127.0.0.1:8080/job/myprojectTests/",
    "name": "Jenkins Acceptance Tests",
    "username": "jenkins_user",
    "password": "jenkins_password_or_token"
}];

If you are having trouble with self-signed certificates and your build status says SELF_SIGNED_CERT_IN_CHAIN, you could use a workaroud adding a strictTls flag to your .jenkins file or .jenkinsrc.js export:

    "strictTls": false

Available commands

  • Jenkins: Open in Jenkins: Open the Jenkins project in you browser
  • Jenkins: Open in Jenkins (Console Output): Open the Console Output of the Jenkins project in you browser
  • Jenkins: Update Status: Manually update the status of our Jenkins project

Available settings

  • Interval (in minutes) to automatically update the status
    "jenkins.polling": 2

Note: 0 (zero) means no update

License

MIT © Alessandro Fragnani (Original Author), Amit Mittal (Author of this fork)

About

Jenkins Status Extension for Visual Studio Code (Once changes in this fork have been incorporated in the original extension, this will be removed)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%