Re: How to throw an error if a parameter is empty?

2020-07-31 Thread Haibinh Nguyen
Hi, How about this: env.FIELD1 = params.FIELD1 switch(FIELD1) { case "ABCD": env.p4 = '/usr/bin/p4' env.awk = 'awk' break case "":: currentBuild.result = 'SUCCESS' return break } On Fri, Jul 31, 2020 at 12:34 AM ch

Jeknins pipeline... output message

2019-10-23 Thread Haibinh Nguyen
Hi All, on the Console Output, i see a lot of message like this: [Pipeline] { (Build) No previous build found... No previous build found... No previous build found... No previous build found... No previous build found... No previous b

Parsing POM in Jenkins maven project taking very long time (5-6mins)

2017-07-27 Thread Hai Thanh Tran Nguyen
I'm having problem with maven projects that are building on jenkins slave using docker container, it's taking too much time at "Parsing POM" step, about 6mins+. If I build it manually or build it on jenkins master then it take only 30s to finish. If using freestyle project to build, it take on

Re: Jenkins get wrong workspace

2016-07-26 Thread Summer nguyen
Hello, Sorry I miss some useful information . I use : Jenkins ver. 1.651.2 <http://jenkins-ci.org/> I use the the "promoted builds plugin" , and the Execute the shell is in the "Promoted Build When" . Thank you very much . Vào 17:40:47 UTC+7 Thứ Ba, ngày 26 tháng

Jenkins get wrong workspace

2016-07-26 Thread Summer nguyen
Hello, I am using Jenkins for deploying my web system . Jenkins meet my requirements . But I got some error while deployin the system. In the Project configuration, I configure the build to Execute the Shell : /usr/local/jenkins_deploy/deploy.sh $WORKSPACE/ . In the time I use it to deplo

How to pass parameter from build batch job to build flow job

2016-03-30 Thread nguyen
ow", I set def REV= build.environment.get("VAR_REV") println REV After I build job *A*, I have output of first echo of job A is 123 and output of second echo of job *A* is 456. However, the output at job *B* is printing out 123. What should I do to have the data 456 in job *B*? Thank

Re: Jenkins 2.0 alpha release available

2016-03-22 Thread Truc Nguyen
Hi, I would like to provide some feedback on Jenkins 2.0 alpha releases. So I hope this is the right place to ask questions :-) BTW I really like the highlights that Jenkins 2.0 alpha release already provide. Looking forward to the next steps! Questions 1. Offline executor It looks like a *P

Re: Jenkins container with Docker container

2015-09-16 Thread Kha Nguyen
ou certainly want to read > https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ > (blog by the very author of DinD, hence obviously insightful). > > Cheers > Le 17 sept. 2015 5:21 AM, "Kha Nguyen" > a > écrit : > >> I have a use ca

Re: Jenkins container with Docker container

2015-09-16 Thread Kha Nguyen
ant to read > https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ > (blog by the very author of DinD, hence obviously insightful). > > Cheers > Le 17 sept. 2015 5:21 AM, "Kha Nguyen" > a > écrit : > >> I have a use case where I run Jenkins ins

Jenkins container with Docker container

2015-09-16 Thread Kha Nguyen
I have a use case where I run Jenkins inside a container using this Jenkins official image . Then I also need Jenkins to build Docker images, and for that I also run another container, known as docker-in-docker, with this official image with tag 'dind'

How to successfully restart a sub project after a failure within the build pipeline plugin

2014-12-30 Thread Thai Nguyen
newbie. I have a failure in my sub project and corrected it. I click on the sub project and restart it, but it seems like it does not restart. The job number is "stuck" at the same number. I can go directly to the sub project outside the plugin and restart it successfully, but through the bu

Re: Post Build Actions: Archive Artifacts

2014-09-26 Thread Michael Nguyen
Regex hubba what? Sorry I don't really understand :P On Friday, September 26, 2014 8:27:44 PM UTC-7, Indra Gunawan (ingunawa) wrote: > > It is under “Post build Actions“ : “Archive the artifacts” > You specify the regex of files in the workspace to archive. > > >

Post Build Actions: Archive Artifacts

2014-09-26 Thread Michael Nguyen
So hi everyone! I'm pretty new to Jenkins CI (literally, I installed it 12 hours ago) and I've managed to get to the point where I can build projects. However, I want to save artifacts from the builds in a .ZIP file, and I don't exactly know how to do that. I know it's under the Post Build Acti

Re: How do I protect a job but publish the results?

2014-08-08 Thread Raine Nguyen
va system property > -Dhudson.security.ArtifactsPermission=true > > This way, you can allow users read access to a job, builds, and build > logs, but prevent access to job config, workspace, and archived artifacts. > > On 07.08.2014, at 18:57, Raine Nguyen > > wrote: >

How do I protect a job but publish the results?

2014-08-07 Thread Raine Nguyen
I need to have a way to protect all the jobs since I do not want to expose the protected data including the source code after build, but still allow users to view the build results to check the issues etc. Please let me know if there is any path I should take. All suggestions, advice are very a

Re: Need suport about Reporter Output with TestNG

2014-02-05 Thread Nguyen Hung
Hi Shawn, Thanks for your supports. I updated the new version of TestNG Report plugin on Jenkins. This bug is fixed :). Thanks, Hung Nguyen On Mon, Jan 27, 2014 at 11:10 PM, Shawn McCarthy wrote: > Have you tried just instead of ? I use in my Reporter.log > and it looks correct. &g

Need suport about Reporter Output with TestNG

2014-01-26 Thread Nguyen Hung
Hi all, I using TestNG to report results of jobs but I met a problem about Reporter Output... It does not understand the HTML tags (ex: ..) => does anyone have a simple method for implementing this? Note: Please see the attachment for more details. Thanks, Hung Nguyen -- You received t

How to run bundle install in execute shell with private gem which required username and password

2014-01-12 Thread hai nguyen ngoc
Hi everyone, I get stuck when I put "bundle install" in execute shell with private gem. It throws an error like this: fatal: could not read Username for 'https://github.com': No such device or address After hour, I know the reason is there is a private gem which required username and password

Re: How to start/stop tomcat from Jenkins?

2013-11-28 Thread Dung Nguyen Minh
Hi Nux, I'm newbie. I want to start/stop Tomcat directly from Jenkins? Can you show me step by step? Thanks. Vào 13:48:58 UTC+7 Thứ sáu, ngày 29 tháng mười một năm 2013, maciej đã viết: > > Dung Nguyen Minh (2013-11-29 05:20): > > Hi, > 1/ Can you tell me how to st

How to start/stop tomcat from Jenkins?

2013-11-28 Thread Dung Nguyen Minh
Hi, 1/ Can you tell me how to start/stop tomcat from Jenkins? 2/ How to upload a file to any tomcat directory from Jenkins? Thanks -- 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