Jenkins

Chrome Extension and Jenkins URL's

痴心易碎 提交于 2021-02-10 19:33:54
问题 I'm currently trying to develop a chrome extension which is supposed to display data from different Jenkins servers. The url to the jenkins server is being entered by the user. So basically what I need is being able to access any kind of jenkins url. My problem is that Chrome's Content Security Policy only allows you to access domains which you've registered in the manifest.json like so: "content_security_policy": "script-src 'self' http://localhost:8080/; object-src 'self'" . But since

Chrome Extension and Jenkins URL's

落爺英雄遲暮 提交于 2021-02-10 19:32:50
问题 I'm currently trying to develop a chrome extension which is supposed to display data from different Jenkins servers. The url to the jenkins server is being entered by the user. So basically what I need is being able to access any kind of jenkins url. My problem is that Chrome's Content Security Policy only allows you to access domains which you've registered in the manifest.json like so: "content_security_policy": "script-src 'self' http://localhost:8080/; object-src 'self'" . But since

ng build command is not working via jenkins build execute shell

大城市里の小女人 提交于 2021-02-10 18:38:18
问题 In jenkins build execute area I put these command: cd /var/lib/jenkins/workspace/test/ ng serve Here is the screenshot: I am getting an error like this: cd /var/lib/jenkins/workspace/test/ ng serve Environment variable TERM not defined! Build step 'Execute shell' marked build as failure Finished: FAILURE node v6.10.0 @angular/cli: 1.0.6 Please help me to resolve this issue. 回答1: Try this I did jenkins integration today. npm run ng build This is working fine. 回答2: In my case my slave Jenkins

Jenkins Specify Remote Root Directory which creates “workspace” folder in the folder structure which i dont want

蓝咒 提交于 2021-02-10 17:56:27
问题 I tried searching on different sites but couldn't find answer. My Question is In Jenkins Slave Node, In Remote root directory, I specified -C:\MyJenkinsRun\ and it is creating folder structure as C:\MyJenkinsRun\workspace\Myprojectname Actually I dont want workspace named folder. I just want C:\MyJenkinsRun\Myprojectname. In My Master, it is Not creating workspace named folder. It is creating the way I want which is C:\MyJenkinsRun\Myprojectname. I did many different ways to specify Remote

Jenkins Specify Remote Root Directory which creates “workspace” folder in the folder structure which i dont want

拜拜、爱过 提交于 2021-02-10 17:52:25
问题 I tried searching on different sites but couldn't find answer. My Question is In Jenkins Slave Node, In Remote root directory, I specified -C:\MyJenkinsRun\ and it is creating folder structure as C:\MyJenkinsRun\workspace\Myprojectname Actually I dont want workspace named folder. I just want C:\MyJenkinsRun\Myprojectname. In My Master, it is Not creating workspace named folder. It is creating the way I want which is C:\MyJenkinsRun\Myprojectname. I did many different ways to specify Remote

Check parallel stages status

混江龙づ霸主 提交于 2021-02-10 17:33:25
问题 I have something like this: stages { stage('createTemplate') { parallel { stage('template_a') { creating template a } stage('template_b') { creating template b } } } stage('deployVm') { parallel { stage('deploy_a') { deploy vm a } stage('deploy_b') { deploy vm b } } } } How can I make sure that deployVm stages run when and only when respective createTemplate stages were successful? 回答1: You may want to run one parallel like this: parallel { stage('a') { stages { stage ('template_a') { ... }

Limit Jenkins Git polling to one branch

亡梦爱人 提交于 2021-02-10 15:50:58
问题 Out current Jenkins Pipeline job is setup to build a branch checked out from Git. To do the checkout we use the SCM plugin: triggers { pollSCM scmpoll_spec: '' } checkout( poll: true, scm: [$class: 'GitSCM', branches: [[name: 'refs/heads/develop']], userRemoteConfigs: [ [url: 'https://git-server/repo.git', name: 'origin', refspec: '+refs/heads/develop:refs/remotes/origin/develop', credentialsId: 'XXX'] ], extensions: [ [$class: 'WipeWorkspace'], [$class: 'CloneOption', honorRefspec: true,

Limit Jenkins Git polling to one branch

牧云@^-^@ 提交于 2021-02-10 15:47:32
问题 Out current Jenkins Pipeline job is setup to build a branch checked out from Git. To do the checkout we use the SCM plugin: triggers { pollSCM scmpoll_spec: '' } checkout( poll: true, scm: [$class: 'GitSCM', branches: [[name: 'refs/heads/develop']], userRemoteConfigs: [ [url: 'https://git-server/repo.git', name: 'origin', refspec: '+refs/heads/develop:refs/remotes/origin/develop', credentialsId: 'XXX'] ], extensions: [ [$class: 'WipeWorkspace'], [$class: 'CloneOption', honorRefspec: true,

Jenkins Persistent Editable Global Variable

末鹿安然 提交于 2021-02-10 14:31:47
问题 I'm looking for a plugin/approach that lets me set and read a persistent global variable for use between jobs. The scenario is that I have CI job that runs tests on various branches of the codebase and I want to associate a build number that corresponds to the last stable build of the release branch. i.e. Build No Branch Result GolbalSharedThingVal 5 release Success 1.5 6 dev Fail 1.5 7 dev Success 1.7 8 release Unstable 1.7 9 release Success 1.9 10 release Fail 1.9 Then in my deployment job

Jenkins Persistent Editable Global Variable

匆匆过客 提交于 2021-02-10 14:28:56
问题 I'm looking for a plugin/approach that lets me set and read a persistent global variable for use between jobs. The scenario is that I have CI job that runs tests on various branches of the codebase and I want to associate a build number that corresponds to the last stable build of the release branch. i.e. Build No Branch Result GolbalSharedThingVal 5 release Success 1.5 6 dev Fail 1.5 7 dev Success 1.7 8 release Unstable 1.7 9 release Success 1.9 10 release Fail 1.9 Then in my deployment job