jenkins-pipeline

Configuring Groovy SDK within IntelliJ IDEA

大憨熊 提交于 2020-12-02 00:22:50
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

↘锁芯ラ 提交于 2020-12-02 00:14:09
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

倾然丶 夕夏残阳落幕 提交于 2020-12-02 00:14:00
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

浪子不回头ぞ 提交于 2020-12-02 00:13:08
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

What is the relationship between Environment and Parameters in Jenkinsfile Parameterized Builds?

£可爱£侵袭症+ 提交于 2020-12-01 09:38:38
问题 I recently ran into something of a puzzler while working on some Jenkins builds with a coworker. He's been using params.VARIABLE and env.VARIABLE interchangably and having no issues with it. Meanwhile, I started getting null object errors on one of his calls to a parameter object through the environment on this line of code: if(!deploy_environments.contains(env.ENVIRONMENT_NAME.trim()) || params.INVOKE_PARAMETERS ) { ENVIRONMENT_NAME here is a parameter. I started getting this error: java

What is the relationship between Environment and Parameters in Jenkinsfile Parameterized Builds?

◇◆丶佛笑我妖孽 提交于 2020-12-01 09:37:26
问题 I recently ran into something of a puzzler while working on some Jenkins builds with a coworker. He's been using params.VARIABLE and env.VARIABLE interchangably and having no issues with it. Meanwhile, I started getting null object errors on one of his calls to a parameter object through the environment on this line of code: if(!deploy_environments.contains(env.ENVIRONMENT_NAME.trim()) || params.INVOKE_PARAMETERS ) { ENVIRONMENT_NAME here is a parameter. I started getting this error: java

how to run jenkins declarative pipeline on node selected via parameter and label option

孤人 提交于 2020-11-29 10:29:47
问题 I want to run a pipeline with the node set as parameter via the Node and Label plugin. How do I change the declarative pipeline pipeline { agent { label 'whatever' } ... to use EXECUTION_NODE as agent to execute the pipeline? This seems to be much more complicated than I thought, or I am missing something obvious. 回答1: The issue is this: to present you the "Build with parameters" page, Jenkins needs to run your pipeline and parse its parameters. To run a pipeline, Jenkins needs a node. To