Jenkins help

46 views
Skip to first unread message

KingTux

unread,
Jan 4, 2017, 9:11:07 AM1/4/17
to Jenkins Users
Hello, I have some questions I hope some people can help me with.
Question one: How do I compile a jar file? the system is getting the source from my Github
https://github.com/KingTux2/ServerInfo
Question Two: How do I make it be able to be download as a jar file.
Question Three: How do I make my Jenkins for other people on the internet be able to download jar files from the project without needing a account.
Question Four: How do I customize it to change the look of Jenkins?
Thank you, KingTux!

Jennifer Hofmeister

unread,
Jan 4, 2017, 11:00:07 AM1/4/17
to jenkins...@googlegroups.com

Hi!

 

1: if you want only to compile one file, I guess you can just choose a “sh” or “batch” build step. Else, you need a build tool like maven, which is a little more complex (and requires some basic understanding of what’s going on). You could choose the Maven job type in that case.

 

2: Use the “archive artifacts” post-build step and enter the path of your jar file there. If you’re not sure where it ended up, just run a test build with your configuration from 1 and search for myJar.jar in the workspace (click on “workspace” on the left-hand side). If you set up archive artifacts correctly, your downloadable build results (if there are any) will appear on the job’s main page.

 

3: Set security settings to “Anyone can do anything” and send them your Jenkins’ address. You can do that under Manage Jenkins (left-hand side) -> Configure Global Security -> Authorization.

 

4: Sorry, I don’t know. Maybe ask https://plugins.jenkins.io/ if there’s a plugin for that.

 

Cheers

Jennifer

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5489af16-bfe8-4726-8479-03de3b48a459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jennifer Hofmeister

unread,
Jan 4, 2017, 11:03:02 AM1/4/17
to jenkins...@googlegroups.com

Ah, just so there’s no confusion:

Jenkins main page, left-hand side: Manage Jenkins

MyJavaJob main page, left-hand side: Workspace

 

;)

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Jennifer Hofmeister
Sent: Mittwoch, 4. Januar 2017 17:00
To: jenkins...@googlegroups.com
Subject: RE: Jenkins help

 

Hi!

 

1: if you want only to compile one file, I guess you can just choose a “sh” or “batch” build step. Else, you need a build tool like maven, which is a little more complex (and requires some basic understanding of what’s going on). You could choose the Maven job type in that case.

 

2: Use the “archive artifacts” post-build step and enter the path of your jar file there. If you’re not sure where it ended up, just run a test build with your configuration from 1 and search for myJar.jar in the workspace (click on “workspace” on the left-hand side of the build page). If you set up archive artifacts correctly, your downloadable build results (if there are any) will appear on the job’s main page.

 

3: Set security settings to “Anyone can do anything” and send them your Jenkins’ address. You can do that under Manage Jenkins (left-hand side) -> Configure Global Security -> Authorization.

 

4: Sorry, I don’t know. Maybe ask https://plugins.jenkins.io/ if there’s a plugin for that.

 

Cheers

Jennifer

 

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of KingTux
Sent: Mittwoch, 4. Januar 2017 15:11
To: Jenkins Users
Subject: Jenkins help

 

Hello, I have some questions I hope some people can help me with.
Question one: How do I compile a jar file? the system is getting the source from my Github
https://github.com/KingTux2/ServerInfo
Question Two: How do I make it be able to be download as a jar file.
Question Three: How do I make my Jenkins for other people on the internet be able to download jar files from the project without needing a account.
Question Four: How do I customize it to change the look of Jenkins?
Thank you, KingTux!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5489af16-bfe8-4726-8479-03de3b48a459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Slide

unread,
Jan 4, 2017, 11:03:46 AM1/4/17
to jenkins...@googlegroups.com
I don't think you want "Anyone can do anything" that would open the instance up to a lot of security issues.

Jennifer Hofmeister

unread,
Jan 4, 2017, 11:06:31 AM1/4/17
to jenkins...@googlegroups.com

You’re right. But it seems to be what they asked for:

“for other people on the internet … without needing a account.”

It should be a very well-isolated Jenkins instance in that case.

Slide

unread,
Jan 4, 2017, 1:17:01 PM1/4/17
to jenkins...@googlegroups.com

I think he wanted people to be able to download the jars, not do anything else. That was my impression from the initial email.


KingTux

unread,
Jan 4, 2017, 6:59:18 PM1/4/17
to Jenkins Users
Thank you, I have figured out question one, two, three. But I do have a new question. How do I make it be port 80 with apache running.

Christoph Nenning

unread,
Jan 5, 2017, 3:09:13 AM1/5/17
to jenkins...@googlegroups.com
Hi,

this is probably what you need:

https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache


Regards,
Christoph
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/
> d/msgid/jenkinsci-users/9a6b2195-e845-4512-867f-9a46b780bf71%

> 40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.


This Email was scanned by Sophos Anti Virus

Reply all
Reply to author
Forward
0 new messages