Jenkins

Jenkins unable to initialize using Kubernetes

 ̄綄美尐妖づ 提交于 2020-12-15 06:07:24
问题 From yesterday I started having problems with jenkins pod - it is unable to be initialized. I haven't update any configuration in the meantime. This is how my pod deployment configuration looks like apiVersion: v1 kind: Pod metadata: annotations: checksum/config: eed56a3d795865e4432dea721435a777ee100059998724f0d57bf1f9378dbb88 creationTimestamp: 2020-09-17T14:14:12Z generateName: jenkins-74cc957b47- labels: app: jenkins chart: jenkins-0.35.0 component: jenkins-jenkins-master heritage: Tiller

Jenkins unable to initialize using Kubernetes

≯℡__Kan透↙ 提交于 2020-12-15 06:07:04
问题 From yesterday I started having problems with jenkins pod - it is unable to be initialized. I haven't update any configuration in the meantime. This is how my pod deployment configuration looks like apiVersion: v1 kind: Pod metadata: annotations: checksum/config: eed56a3d795865e4432dea721435a777ee100059998724f0d57bf1f9378dbb88 creationTimestamp: 2020-09-17T14:14:12Z generateName: jenkins-74cc957b47- labels: app: jenkins chart: jenkins-0.35.0 component: jenkins-jenkins-master heritage: Tiller

How to build C++ code using scons for solaris compatible OS using jenkins?

半腔热情 提交于 2020-12-15 05:51:49
问题 Here is my C++ code: #include<iostream> int main() { std::cout<<"Starting Program"<<std::endl; int a = 10; int b = 20; int c = a + b; std::cout<<"Sum of A and B is "<<c<<std::endl; std::cout<<"Ending Program"<<std::endl; return 0; } Here is my SConstruct script file: env = Environment(platform='sunos') env.Program('hello.C') Does above SConstruct file is correct to build hello.C for solaris ? Will this work. Any suggestions. 回答1: This is how I would do it: Setup a Solaris machine x86/SPARC

How to build C++ code using scons for solaris compatible OS using jenkins?

断了今生、忘了曾经 提交于 2020-12-15 05:49:06
问题 Here is my C++ code: #include<iostream> int main() { std::cout<<"Starting Program"<<std::endl; int a = 10; int b = 20; int c = a + b; std::cout<<"Sum of A and B is "<<c<<std::endl; std::cout<<"Ending Program"<<std::endl; return 0; } Here is my SConstruct script file: env = Environment(platform='sunos') env.Program('hello.C') Does above SConstruct file is correct to build hello.C for solaris ? Will this work. Any suggestions. 回答1: This is how I would do it: Setup a Solaris machine x86/SPARC

How to create dynamic checkbox parameter in Jenkins pipeline?

↘锁芯ラ 提交于 2020-12-15 04:38:07
问题 I found out how to create input parameters dynamically from this SO answer agent any stages { stage("Release scope") { steps { script { // This list is going to come from a file, and is going to be big. // for example purpose, I am creating a file with 3 items in it. sh "echo \"first\nsecond\nthird\" > ${WORKSPACE}/list" // Load the list into a variable env.LIST = readFile (file: "${WORKSPACE}/list") // Show the select input env.RELEASE_SCOPE = input message: 'User input required', ok:

DevOps工程相关技术实践类教程

人走茶凉 提交于 2020-12-13 04:48:27
你好,我是泽阳,在DevOps领域实践了多年,借助公司项目机会从端到端的对项目进行实施改造。在经过实践后,项目通过了信通院发布的《DevOps持续交付标准三级》评估。在此过程中不断的实施与改进验证了DevOps理念,积累了相关经验。 我 专注于企业级相关的技术研究与实践分享,在不断的实践过程中也希望能够给业界同行带来一些分享(避坑指南)。 大家都在谈的DevOps是什么? 自动化运维是将运维工程师手头的日常事务借助自动化工具实现高效工作。例如: 编写一些各种语言脚本进行自动化部署、自动化发布。基本上可以定义为 "运维工作 As Code"。 运维效率提升了,那么开发呢?想想开发有哪些工作是可以自动化实现的? 想想开发人员主要做啥呢?写代码 写代码 写代码 还是写代码。代码就是开发人员的输出也是后期产品的体现。代码是如何管理的?分支模式是? 多久提交一次代码?多久构建一次代码? 代码里面有没有硬编码?等....... 持续集成(CI) 开发人员将 每次提交的代码 进行构建验证 。 这个构建验证包含哪些呢? 例如: 代码是否可以正常编译? 单元测试是否能够覆盖? 代码的质量如何? 。 这些都可以纳入 CI持续集成阶段。 持续交付、持续部署(CD) 代码经过了集成,开始对每次的变更进行发布。发布到非生产的测试环境或者临时环境中。 持 续交付与持续 部署 之间的区别在于 ,

Webhook configuration with Gitlab

限于喜欢 提交于 2020-12-13 04:01:30
问题 I have a Jenkins pipeline project and I would like to trigger a build every time a push to the Gitlab repository where the code is hosted is performed. On Jenkins I have installed the Gitlab plugin and the Git plugin and I have configured the Gitlab section (Manage Jenkins -> Configure System) by adding the Gitlab host URL (https://gitlab.com) and the Gitlab API token previously generated on Gitlab: if I perform a test connection, everything is OK, as expected. The problem is on Gitlab: I go

Jenkins - Passing parameter to groovy function

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-13 03:14:52
问题 I've been trying to call another groovy function with parameters inside my pipeline without any luck. The groovy function I am passing the parameters to consists of a bash script, but this bash script does not recognize the parameter(s) I am passing to it. If however the parameter passed by i defined as a parameters {} in the pipeline, then it works, but I do not want this. PROBLEM: The shell script does not recognize/understand the arguments, the variables are empty, no value.

Jenkins - Passing parameter to groovy function

与世无争的帅哥 提交于 2020-12-13 03:12:35
问题 I've been trying to call another groovy function with parameters inside my pipeline without any luck. The groovy function I am passing the parameters to consists of a bash script, but this bash script does not recognize the parameter(s) I am passing to it. If however the parameter passed by i defined as a parameters {} in the pipeline, then it works, but I do not want this. PROBLEM: The shell script does not recognize/understand the arguments, the variables are empty, no value.

Jenkins - Passing parameter to groovy function

那年仲夏 提交于 2020-12-13 03:12:04
问题 I've been trying to call another groovy function with parameters inside my pipeline without any luck. The groovy function I am passing the parameters to consists of a bash script, but this bash script does not recognize the parameter(s) I am passing to it. If however the parameter passed by i defined as a parameters {} in the pipeline, then it works, but I do not want this. PROBLEM: The shell script does not recognize/understand the arguments, the variables are empty, no value.