Jenkins

How to get user inputs from Jenkins Active Choice parameter using Formatted HTML

删除回忆录丶 提交于 2020-07-10 10:28:16
问题 I defined parameter of type " Active Choices Reactive Reference Parameter " on Freestyle Job it returns HTML text input - <input>. but after populating this data and press "Build" i can't get the user input of this text field, tried with groovy or shell steps, for the parameter name itself i get empty string. it's possible somehow to fetch the value of below field VAPP_ID ? suppose to get "123" This is the groovy script of this Formatted HTML: vappHtml = ''' <ul style="list-style-type: none">

How to get user inputs from Jenkins Active Choice parameter using Formatted HTML

╄→гoц情女王★ 提交于 2020-07-10 10:28:08
问题 I defined parameter of type " Active Choices Reactive Reference Parameter " on Freestyle Job it returns HTML text input - <input>. but after populating this data and press "Build" i can't get the user input of this text field, tried with groovy or shell steps, for the parameter name itself i get empty string. it's possible somehow to fetch the value of below field VAPP_ID ? suppose to get "123" This is the groovy script of this Formatted HTML: vappHtml = ''' <ul style="list-style-type: none">

“COPY plugins.txt” in Jenkins in Docker in Windows failed

喜夏-厌秋 提交于 2020-07-10 10:26:28
问题 docker pull jenkinsci/blueocean docker network create jenkins docker volume create jenkins-docker-certs docker volume create jenkins-data docker container run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home docker:dind docker container run --name jenkins-blueocean --rm --detach --network jenkins --env DOCKER_HOST=tcp://docker:2376 --env

“COPY plugins.txt” in Jenkins in Docker in Windows failed

坚强是说给别人听的谎言 提交于 2020-07-10 10:26:00
问题 docker pull jenkinsci/blueocean docker network create jenkins docker volume create jenkins-docker-certs docker volume create jenkins-data docker container run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home docker:dind docker container run --name jenkins-blueocean --rm --detach --network jenkins --env DOCKER_HOST=tcp://docker:2376 --env

How would I store all failed stages of my declarative Jenkins pipeline

浪子不回头ぞ 提交于 2020-07-10 01:48:46
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

How would I store all failed stages of my declarative Jenkins pipeline

北城以北 提交于 2020-07-10 01:47:28
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

How would I store all failed stages of my declarative Jenkins pipeline

断了今生、忘了曾经 提交于 2020-07-10 01:47:06
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

How to start pm2 website using jenkins on AWS ubuntu server?

生来就可爱ヽ(ⅴ<●) 提交于 2020-07-09 03:48:08
问题 I set up Jenkins , pm2 on AWS ubuntu server. I had a website A that built by jenkins . The jenkins then will start that website by pm2 in the configured shell. However, only I start the website by logging on to the ubuntu server manually and run pm2 start A can make the website running. The problem seems that pm2 started by user jenkins will not be visible by the outside world. Only started by user ubuntu (via ssh ubuntu@myubuntuserver) can be effectively public. Why and how can I make

How to use Github Personal Access Token in Jenkins

≯℡__Kan透↙ 提交于 2020-07-08 15:18:49
问题 I can ask this question in many ways, like How to configure Jenkins credentials with Github Personal Access Token How to clone Github repo in Jenkins using Github Personal Access Token So this is the problem The alternate solution that I am aware of SSH connection username password configuration in Jenkins But My question is how to setup Github connection with Jenkins using Personal Access Token 回答1: After many discussion on multiple threads from Stackoverflow I found one thread which is

How to use Github Personal Access Token in Jenkins

℡╲_俬逩灬. 提交于 2020-07-08 15:18:06
问题 I can ask this question in many ways, like How to configure Jenkins credentials with Github Personal Access Token How to clone Github repo in Jenkins using Github Personal Access Token So this is the problem The alternate solution that I am aware of SSH connection username password configuration in Jenkins But My question is how to setup Github connection with Jenkins using Personal Access Token 回答1: After many discussion on multiple threads from Stackoverflow I found one thread which is