Call vSphere cloud plugin via Groovy DSL

2015-06-15 Thread Quang Truong
Please help to share on how we can use workflow Groovy CPS DSL script to run a build step on vSphere plugin instead of using a job? I'm a newbie. Thanks, Quang -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and

Batch command with slave mode configuration

2015-09-16 Thread Quang Truong
Dear all, I have encountered an issue like this: - If I setup a slave by downloading and running the jnlp file (no need to install as Window service, just leave the java dialog as connected process). Then I can run this batch command: setlocal EnableDelayedExpansion FOR /f "tokens=1 delims=<"

Re: Batch command with slave mode configuration

2015-09-17 Thread Quang Truong
;<20>"' Thanks, Quang On Thursday, September 17, 2015 at 2:39:33 AM UTC+7, Quang Truong wrote: > Dear all, > > I have encountered an issue like this: > > - If I setup a slave by downloading and running the jnlp file (no need to > install as Window service, just l

Re: Batch command with slave mode configuration

2015-09-28 Thread Quang Truong
by the java which is defined in Javahome. Regards, Quang On Friday, September 18, 2015 at 1:15:39 AM UTC+7, Quang Truong wrote: > Thanks Victor! > > I have tried with backlash (actually we can use even Linux syntax here) > and use %windir% instead of C:\Windows but still got the syn

How to update environment variable value via EnvInject plugin

2015-09-28 Thread Quang Truong
Hi, I'm using EnvInject plugin to pass the variables across jobs but in one job the value of one variable might change within that job and I want to update that variable's value within that job. I have tried to add: echo var1=%new value%>>"%workspace%\glob.prop" then use EnvInject this

Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Quang Truong
Another way that you can use any configuration management tool to trigger the remote process, for me, I use Ansible, it's an agentless tool, you can also take a look on other tools such as puppet, chef or salt. Your scenario is quite usual, build (on Jenkins slave) => deploy (on other machine),

Jenkins docker with NIS user

2018-10-10 Thread Quang Truong
Hi, I'm using jenkins docker to spin up a jenkins master, however, we're using NIS user to manage the access to jenkins. I have tried to search around but I can't see how to integrate the PAM NIS user for jenkins docker. I walk through this discussion

Re: SonarQube Server authentication token in Jenkins is default none

2019-05-31 Thread Quang Truong
>From the Credential Provider dialog, select Secret Text, then use your token in the secret field. You can read the detail of the credential plugin how to use this plugin On Thursday, May 30, 2019 at 10:11:06 AM UTC-7, Manu pprp wrote: > > Hi Quang Truong, > > Thanks f

Re: Error in Manage Jenkin page

2019-06-07 Thread Quang Truong
Seems you're trying to connect to a tool app under TLS with un-trusted/self-signed cert. With Jenkins you have to add your cert into Java keystore, unfortunately I haven't success to do that so I can't add more comment but you can start with that for your research. On Thursday, June 6, 2019 at

Re: pipeline ignore error

2019-06-07 Thread Quang Truong
Not sure if I understand you correctly, just do try catch like java code Scripted: stage ('abc') { try { sh "rm file' } catch (e) { echo "Error deleting file!" } } Declarative: stage ('abc') { script { try { sh "rm file' } catch (e) { echo "Error deleting

Re: build image based on PullRequest and test it

2019-05-29 Thread Quang Truong
ker container and image } Please make sure you have try catch in case your pipeline has failed then you will cleanup the docker garbage. I haven't had time to explore the docker plugin to have a better approach yet, you can take a look at this: https://go.cloudbees.com/docs/plugins/docker-w

Re: SonarQube Server authentication token in Jenkins is default none

2019-05-29 Thread Quang Truong
Click on the Add button, select Jenkins on the popup, system will launch the Credential Provider dialog to create a credential for your sonar user. https://plugins.jenkins.io/credentials -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Can't add SonarQube User Token to Jenkins configuration...

2019-06-19 Thread Quang Truong
Hi Jeff, You can create the credential with "Secret text" type, which you use the token from Sonar as the secret text Best Regards, Quang -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Pipeline Changes Page

2019-06-19 Thread Quang Truong
Hi, I have a problem on the multibranch pipeline when I change the Git repository server in the configuration and Jenkinsfile script, everything is fine except the Changes page points to the old repository server for all the links. I have updated all configurations in job and system

Re: Pipeline Changes Page

2019-06-19 Thread Quang Truong
I think I found the issue, don't know how to delete this thread so I update the root cause for anyone might encounter the same issue. We use the checkout step in a shared lib with a hardcode of repository browser object to the old repo server checkout(changelog: true, poll: true, scm: [$class:

On-prem k8s cluster and k8s plugin

2019-05-23 Thread Quang Truong
Hi, I start working with k8s and my working environment is the on-prem so I try to build the on-prem k8s via kubeadm and calico cni: http://www.centinosystems.com/blog/sql/getting-started-with-kubernetes-on-prem/ https://docs.projectcalico.org/v3.7/getting-started/kubernetes/ I try to

Re: build image based on PullRequest and test it

2019-05-23 Thread Quang Truong
We implemented a similar Use Case: - Create an isolate environment for each team - Whenever they have commit/PR triggers a build and create a container to build that project. - If the Dockerfile in that project has changed, refresh the docker image then create container based on

Kubernetes plugin with Rancher cluster

2019-04-22 Thread Quang Truong
Hi, I have setup an on-prem cluster with Rancher 2.X ( https://rancher.com/docs/rke/latest/en/installation/), when I set the worker node on the same master, the jnlp slave can start successfully. However, when I try a new node in the cluster, I use the master on one machine and another machine