Coder Social home page Coder Social logo

vscode-jenkins-status's Introduction


Read-only Logo

What's new in Jenkins Status 4

  • Adds Multi-root support
  • Adds Multiple Jobs support
  • Adds in-progress status support
  • Auto-detect changes in .jenkins file
  • Improved Status Bar tooltip
  • Adds HTTPS support
  • Adds Authentication support

Support

Jenkins Status is an open source extension created for Visual Studio Code. While being free and open source, if you find it useful, please consider supporting it.

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.

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

Contributors

Special thanks to the people that have contributed to the project:

  • Keunhong Lee (@leeopop) - Skip authentication when no username is provided (see PR)
  • Amit Mittal (@eramitmittal) - Multiple Jobs and in-progress status support (see PR)
  • Kimitaka Watanabe (@kimitaka) - Updated .jenkins example in README (see PR)
  • Zhao Xiaojie (@LinuxSuRen) - Status Bar improvements (see PR)
  • Grzegorz Judas (@grzegorzjudas) - HTTPS Support using NODE_TLS_REJECT_UNAUTHORIZED environment variable (see PR)
  • Adam Parkin (@pzelnip) - Fix tooltip for failed builds (see PR)
  • Mike Patrick (@mikepatrick) and Mensa Ulysse (@umens) - Support Authentication (see PR)
  • Vojtěch Habarta (@vojtechhabarta) - Support for larger JSON responses (see PR)

Also thanks to everyone who helped opening issues with ideas and bug reports.

License

MIT © Alessandro Fragnani

vscode-jenkins-status's People

Contributors

alefragnani avatar dependabot[bot] avatar eramitmittal avatar kimitaka avatar leeopop avatar linuxsuren avatar mikepatrick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.