Jenkins

Using cypress behind proxy in Jenkins pipeline

只愿长相守 提交于 2021-02-11 06:17:24
问题 I have seen this on github but I was still not able to get cypress to configure/download correctly. In my jenkins pipeline I run npm install but this runs into a timeout because of the proxy. It downloads all other dependencies expect cypress . What I did was download cypress and put the zip file in the project. I then run sh "setCYPRESS_INSTALL_BINARY=cypress.zip npm i cypress" but this still fails. Part that fails in Jenkins pipeline: sh "npm config set proxy http://<proxy>" sh "npm config

Using cypress behind proxy in Jenkins pipeline

别等时光非礼了梦想. 提交于 2021-02-11 06:16:52
问题 I have seen this on github but I was still not able to get cypress to configure/download correctly. In my jenkins pipeline I run npm install but this runs into a timeout because of the proxy. It downloads all other dependencies expect cypress . What I did was download cypress and put the zip file in the project. I then run sh "setCYPRESS_INSTALL_BINARY=cypress.zip npm i cypress" but this still fails. Part that fails in Jenkins pipeline: sh "npm config set proxy http://<proxy>" sh "npm config

Using cypress behind proxy in Jenkins pipeline

别等时光非礼了梦想. 提交于 2021-02-11 06:15:59
问题 I have seen this on github but I was still not able to get cypress to configure/download correctly. In my jenkins pipeline I run npm install but this runs into a timeout because of the proxy. It downloads all other dependencies expect cypress . What I did was download cypress and put the zip file in the project. I then run sh "setCYPRESS_INSTALL_BINARY=cypress.zip npm i cypress" but this still fails. Part that fails in Jenkins pipeline: sh "npm config set proxy http://<proxy>" sh "npm config

Using cypress behind proxy in Jenkins pipeline

大城市里の小女人 提交于 2021-02-11 06:14:13
问题 I have seen this on github but I was still not able to get cypress to configure/download correctly. In my jenkins pipeline I run npm install but this runs into a timeout because of the proxy. It downloads all other dependencies expect cypress . What I did was download cypress and put the zip file in the project. I then run sh "setCYPRESS_INSTALL_BINARY=cypress.zip npm i cypress" but this still fails. Part that fails in Jenkins pipeline: sh "npm config set proxy http://<proxy>" sh "npm config

Strange behavior when parsing result from curl + awk

纵然是瞬间 提交于 2021-02-11 06:08:42
问题 Using curl on ubuntu I am trying to fetch the Jenkins version inspired by: https://wiki.jenkins.io/display/JENKINS/Remote+access+API In a bash script I do: VERSION=$(curl -k -i -X GET --insecure --silent --header \"Authorization: Bearer $TOKEN \" $URL | grep -Fi X-Jenkins: | awk '{print $2}') echo "__A__[${VERSION}]__B__" But when I run the script I get: ]__B__2.89.2 So for some reason the prefix: __A__[ gets swallowed and the suffix gets turned into a prefix . I have also tried to trim the

Strange behavior when parsing result from curl + awk

流过昼夜 提交于 2021-02-11 05:59:06
问题 Using curl on ubuntu I am trying to fetch the Jenkins version inspired by: https://wiki.jenkins.io/display/JENKINS/Remote+access+API In a bash script I do: VERSION=$(curl -k -i -X GET --insecure --silent --header \"Authorization: Bearer $TOKEN \" $URL | grep -Fi X-Jenkins: | awk '{print $2}') echo "__A__[${VERSION}]__B__" But when I run the script I get: ]__B__2.89.2 So for some reason the prefix: __A__[ gets swallowed and the suffix gets turned into a prefix . I have also tried to trim the

Strange behavior when parsing result from curl + awk

混江龙づ霸主 提交于 2021-02-11 05:58:41
问题 Using curl on ubuntu I am trying to fetch the Jenkins version inspired by: https://wiki.jenkins.io/display/JENKINS/Remote+access+API In a bash script I do: VERSION=$(curl -k -i -X GET --insecure --silent --header \"Authorization: Bearer $TOKEN \" $URL | grep -Fi X-Jenkins: | awk '{print $2}') echo "__A__[${VERSION}]__B__" But when I run the script I get: ]__B__2.89.2 So for some reason the prefix: __A__[ gets swallowed and the suffix gets turned into a prefix . I have also tried to trim the

Strange behavior when parsing result from curl + awk

痴心易碎 提交于 2021-02-11 05:58:16
问题 Using curl on ubuntu I am trying to fetch the Jenkins version inspired by: https://wiki.jenkins.io/display/JENKINS/Remote+access+API In a bash script I do: VERSION=$(curl -k -i -X GET --insecure --silent --header \"Authorization: Bearer $TOKEN \" $URL | grep -Fi X-Jenkins: | awk '{print $2}') echo "__A__[${VERSION}]__B__" But when I run the script I get: ]__B__2.89.2 So for some reason the prefix: __A__[ gets swallowed and the suffix gets turned into a prefix . I have also tried to trim the

Jenkins CORS Filter plugin not adding Access-Control-Allow-Origins header

♀尐吖头ヾ 提交于 2021-02-11 04:55:22
问题 I am trying to add CORS support to my Jenkins server so I could access the REST API from the browser. From looking around, the recommended approach is to use the CORS Filter plugin. I have installed it, enable it, and add http://localhost to the Access-Control-Allow-Origins field, as well as GET to Access-Control-Allow-Methods field. However, these headers are not showing up in my requests. This plugin has not been updated in a few years, so I'm not sure if it's compatible with the latest

Jenkins slaves workspaces

◇◆丶佛笑我妖孽 提交于 2021-02-10 23:41:36
问题 I have a Jenkins multi-configuration project that I want to build on two slaves (Slave-1 and Slave-2) which are located on two different VM's. I am having a problem with how Jenkins attempts to create different workspaces for each slave. I want to use the same workspace path on each VM. I am getting my project files from Perforce and want to put them in the directory c:\workspace on both VM's. However when I run a build, I look on the VM that has Slave-1 and it stores the project files under: