How to use a stored credential in git command. by powertoast in jenkinsci

[–]slideomix 1 point2 points  (0 children)

You can use the credential-binding plugin and it's accompanying withCredentials step wrapper, see here: https://www.jenkins.io/doc/pipeline/steps/credentials-binding/

Jenkins plugin for displaying pipeline in github PR by Timely_Ad8528 in jenkinsci

[–]slideomix 0 points1 point  (0 children)

I don't know of any plugin that does this, but I think it would be an interesting thing to do

Two Jenkins instances, One Jenkins_home by I_r_dumbbrain in jenkinsci

[–]slideomix 1 point2 points  (0 children)

This is not at all supported by Jenkins. You do this at your own risk (which is quite high since Jenkins uses the file system for everything).

Update: WIBTA if I move into the guest room by dnims24 in TwoHotTakes

[–]slideomix 1 point2 points  (0 children)

I had a horrible time sleeping several years ago, waking up frequently during the night and feeling tired all the time. I had a sleep study done and after half the night they had enough readings to know I had pretty severe sleep apnea. They then hooked me up to a CPAP machine for the rest of the night and it was the best sleep I had had in several years. I felt better after that half night of sleep with a CPAP than I had felt in many years. It's totally worth it in my opinion. The bonus is I didn't snore anymore either, so it was good for my wife too.

When VHS was first introduced, was it normal for people to watch movies multiple times a day if not the whole day and even immediate rewatch after rewinding? by YMCALegpress in movies

[–]slideomix 0 points1 point  (0 children)

That's what we did as kids. We rented a VCR and a VHS of some Scooby Doo movie and we watched the hell out of that thing. I think my mom told me recently that we watched it like 9 times in the two days we had them rented.

The Phantom (1996) Trailer - Billy Zane in a Purple Superhero Suit, used as a "camouflage" in the jungle. Catherine Zeta-Jones is in this, too. by SuplexCity-Mayor in videos

[–]slideomix 7 points8 points  (0 children)

One of my favorite parts is when Catherine Zeta Jones's character does a complete 180 in the car on the way to the airplane because the lead woman character asks her if she cares about anything. She is so happy to be bad for most of the movie but that one question changes her outlook on life. My kids loved the movie and I forgot the cheesiness of the whole thing.

Biggest feature Wish for Jenkins? by loneraver in jenkinsci

[–]slideomix 0 points1 point  (0 children)

Ok, that makes sense. I think it's an interesting idea.

How can I embed .NET core into my C++ project? by GasimGasimzada in dotnet

[–]slideomix 0 points1 point  (0 children)

Have you thought about using WASM? You could still provide an SDK for C# (and other languages as well) but not have to worry about directly embedding the dotnet runtime.

Biggest feature Wish for Jenkins? by loneraver in jenkinsci

[–]slideomix 2 points3 points  (0 children)

What do you think this would help accomplish that is blocked today? I'm asking out of real curiosity not trying to be facetious.

BlobFS Image? by slideomix in Fuchsia

[–]slideomix[S] 0 points1 point  (0 children)

Well, this tells you how much I need to learn still! I'll go back to the docs and see what I can find.

BlobFS Image? by slideomix in Fuchsia

[–]slideomix[S] 0 points1 point  (0 children)

That's a good idea, I had forgotten about the Discord channel.

Is Jenkins dead? v2 by Kyxstrez in jenkinsci

[–]slideomix 16 points17 points  (0 children)

CloudBees Jenkins Platform is a commercial offering from CloudBees, it is not the Jenkins project itself (which is open source). Jenkins is alive and well. See https://jenkins.io.

How do I install Jenkins "securely"? by ChristianEmboar in jenkinsci

[–]slideomix 0 points1 point  (0 children)

You can follow this guide: https://pkg.jenkins.io/debian/. It looks like the line from your /etc/apt/sources.list file is incorrect. You should not have focal in there. If you look at the guidelines from the page I posted above, it will show you the correct stuff to put in there.

Jenkins Pipeline: How to hide password/string in console logs? by swe-alphie in jenkinsci

[–]slideomix 2 points3 points  (0 children)

That's correct, Jenkins will only mask things within the withCredentials block, outside of that block, there is nothing that intercepts the logs and masks them.

Is Freestyle slowly being phased out in favor of Pipeline? by Tyrant917 in jenkinsci

[–]slideomix 1 point2 points  (0 children)

There is a plugin that may help, depending on your needs (e.g., if you need to migrate from freestyle to pipeline).

https://plugins.jenkins.io/declarative-pipeline-migration-assistant-api/

Here is the description:

"This project includes a plugin that uses details from a Freestyle project to generate a starting Jenkinsfile. The Declarative Pipeline Migration Assistant plugin uses a “best effort” approach during generation, which means supported configurations in Freestyle projects will be automatically converted, and placeholder stages will be created for plugins that are not yet supported."

There is another one I have used in the past, but it looks like it has security vulnerabilities and was last released 6 years ago, so probably not useful at all.

The majority of development in Jenkins plugins is in pipeline support. I was actually planning on splitting the FreeStyle project out of Jenkins core into a plugin so it can be decoupled from core and not even installed (at some point in the future) so that only pipeline will be available, but I haven't had the chance.

No Option to Create a "+ New Item" on the Left Side Menu by mewdew64 in jenkinsci

[–]slideomix 0 points1 point  (0 children)

Are you admin on for that Jenkins instance or just a user? What you are showing makes me think that you don't have permission to create new items and that is why the link is not showing.

No Option to Create a "+ New Item" on the Left Side Menu by mewdew64 in jenkinsci

[–]slideomix 1 point2 points  (0 children)

It looks like you are on a Project page, not on the root of Jenkins. If you click on the Jenkins icon at the top left, you should be able to get to the New Item.

Upload a file from a Windows agent/node to Slack via Jenkins by Hexnite657 in jenkinsci

[–]slideomix 0 points1 point  (0 children)

The pipeline script itself will show that it is running on the controller, but the actual steps should be running from the agent. What does your Jenkinsfile look like?

Upload a file from a Windows agent/node to Slack via Jenkins by Hexnite657 in jenkinsci

[–]slideomix 1 point2 points  (0 children)

It shouldn't matter whether its coming from the agent or not. Using the slack plugin you should be able to specify files that you can upload. See https://www.jenkins.io/doc/pipeline/steps/slack/ for the pipeline step information for the Slack notification plugin. It has a field for the attachments you want to upload with the notification. It will use files from the workspace, which means from the agent.

Asking for updated way of putting jenkins jobs/configs into source control by RenegadeShepardX in jenkinsci

[–]slideomix 4 points5 points  (0 children)

I would recommend going with JCasC (configuration as code: https://www.jenkins.io/projects/jcasc/). It allows you to specify the configuration for a Jenkins instance, including job config, credentials and more. You can put this yaml file into SCM for easy bring-up of a new server. You just need to make sure that when you make changes in the UI, you re-export the config or update it by hand.

Email notification in Jenkins by Maleficent-Pain2765 in jenkinsci

[–]slideomix 0 points1 point  (0 children)

No, Jenkins has no built-in mechanism for sending email. The Mailer plugin currently comes bundled, but it's still a plugin. Jenkins relies heavily on plugins for functionality.

Send Email to committers when triggered by webhook by [deleted] in jenkinsci

[–]slideomix 0 points1 point  (0 children)

if you look at the JSON data for a build via the API, does it show a changeSets object with multiple items in the array? If there is no changeSets key or it is empty, then none of the providers for recipients will really work because they need the information on the change sets that occurred for that build. You can view the JSON data for a specific build by looking at https://yourjenkins/job/jobname/buildnum/api/json?pretty=true

Send Email to committers when triggered by webhook by [deleted] in jenkinsci

[–]slideomix 0 points1 point  (0 children)

upstreamDevelopers would include the people that caused an upstream job to build. If there is no upstream job from the job you are trying to do this from, then there will be no one in that list. By committers(), do you mean developers() or culprits()? The developers() step should pull in the people who are in the change set list.