# DSTY - jenkins-std-lib (Shared Library) - Is back!

**URL:** <https://community.jenkins.io/t/dsty-jenkins-std-lib-shared-library-is-back/1962>\
**Category:** Showing Off\
**Created:** [March 30, 2022, 1:39pm UTC](https://community.jenkins.io/t/dsty-jenkins-std-lib-shared-library-is-back/1962 "2022-03-30T13:39:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadycuz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/shadycuz/32/196_2.png) [@shadycuz](https://community.jenkins.io/u/shadycuz)\
**Post date:** [March 30, 2022, 1:39pm UTC](https://community.jenkins.io/t/dsty-jenkins-std-lib-shared-library-is-back/1962/1 "2022-03-30T13:39:36Z")

</div>

Hey everyone,

After taking a tiny 4 month break 😅. I’m back with a mostly maintenance release.

[DontShaveTheYak](https://github.com/DontShaveTheYak) has released [v0.12.0](https://github.com/DontShaveTheYak/jenkins-std-lib/releases/tag/0.12.0) of the [jenkins-std-lib](https://github.com/DontShaveTheYak/jenkins-std-lib).

This release is mostly dependency updates as I get back into the swing of things. However I did manage to release two improvements which are worth mentioning.

- You can now easily use [tfswitch](https://github.com/warrensbox/terraform-switcher) inside your pipelines to automatically detect and install the correct version of terraform.
- We now have a docker container that can easily be run to demo the features of the library.

To play with the new [TerraformSwitcher](https://javadoc.io/static/io.github.dontshavetheyak/jenkins-std-lib/0.12.0/org/dsty/iac/terraform/TerraformSwitcher.html) class.

1. Run `docker run --rm -p 4000:80 dsty/jenkins:demo` to start the jenkins sever locally.
2. Wait about a min or until you see “Jenkins is fully up and running”
3. Browse to [http://127.0.0.1:4000/job/terraform-switcher-example/](http://127.0.0.1:4000/job/terraform-switcher-example/) and click build to see the `tfswitch` example. To see the code that is running scroll to the top of the build and click “replay” or see it [here](https://github.com/DontShaveTheYak/jenkins-std-lib/blob/c268577b1bfc2c5f74cd2bd61a6c61996099b50f/jobs/iac/terraform/terraform_switcher_example.groovy).

For the more security consious users, you can build the demo docker container yourself [here](https://github.com/DontShaveTheYak/jenkins-std-lib/tree/master/docker/demo).

Checkout the example jobs [here](https://github.com/DontShaveTheYak/jenkins-std-lib/tree/master/jobs/system/os/programs), which demonstrates most of the new features. Hosted javadoc documentation is available [here](https://javadoc.io/doc/io.github.dontshavetheyak/jenkins-std-lib/latest/index.html).

Shameless plug below 😅

If you are using the vscode IDE, then I highly recommend my [Jenkins Extension Pack](https://marketplace.visualstudio.com/items?itemName=DontShaveTheYak.jenkins-extension-pack) which gives you auto completion and javadoc comments directly in your IDE.
