Re: Multibranch Pipeline: GCC errors does not stand out

2016-10-27 Thread Sverre Moe
s. So, to > enable that on Jenkins, you "just" have to enable "something" that would > translate those to something a web browser can understand: > https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin > > 2016-10-24 10:48 GMT+02:00 Sverre Moe >: >

Re: How to clone a git repo with a different branch than master on Jenkinsfile

2016-10-27 Thread Sverre Moe
Snippet generator => checkout: General SCM torsdag 27. oktober 2016 01.50.56 UTC+2 skrev Mario Rodriguez følgende: > > Hi, I have a very simple Jenkinsfile pipeline that uses "checkout scm" but > I'm looking for a way to specify this command to use a different branch > than master. > > any ideas

Re: How to clone a git repo with a different branch than master on Jenkinsfile

2016-10-27 Thread Sverre Moe
= scmRepo.getURIs().first().toString() Then set userRemoteConfigs: [[url: URI]] torsdag 27. oktober 2016 09.18.40 UTC+2 skrev Sverre Moe følgende: > > Snippet generator => checkout: General SCM > > torsdag 27. oktober 2016 01.50.56 UTC+2 skrev Mario Rodriguez følgende: >> >> Hi, I hav

Re: Email-Ext and Pipeline - How to add Culprits and Developers as recipients?

2016-10-28 Thread Sverre Moe
Haven't this been implemented yet? I am getting Developers and Culprits through emailextrecipients final def recipients = emailextrecipients([ [$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider'], [$class: 'FirstFailingBuildSuspectsRecipientProvider'], [$c

Iterate FileWrapper, fails with shell script within the loop

2016-10-31 Thread Sverre Moe
Problem looping through the result of findFiles. The result from this method returns a org.jenkinsci.plugins.pipeline.utility.steps.fs.FileWrapper node { stage("Publish") { def files = findFiles(glob: '**/*.rpm') for (def file : files) { sh "echo Hello Wor

Re: Iterate FileWrapper, fails with shell script within the loop

2016-11-07 Thread Sverre Moe
gt; > See > https://github.com/jenkinsci/pipeline-examples/blob/master/docs/BEST_PRACTICES.md#groovy-gotchas > > > > > Am Montag, 31. Oktober 2016 12:22:08 UTC+1 schrieb Sverre Moe: >> >> Problem looping through t

Pipeline: Support for DependencyGraph

2016-11-07 Thread Sverre Moe
Dependency Graph is very useful to display any upstream and downstream dependencies. However with Pipeline it seems no longer an option. Is there any plans for *DependencyGraph* pipeline support with *WorkflowMultiBranchProject*? Since *DependencyGraph* can only work with *AbstractProject*, and

Pipeline: Multiproject repository

2016-11-14 Thread Sverre Moe
I need some help brainstorming a solution for multiproject repositories. Pipeline building a repository that contains several delivery projects. The root of the repository contains several delivery projects. - delivery-project - delivery1 - CMakeList.txt - delivery-project-delivery1.spec

Re: New Pipeline Maven plugin

2016-11-21 Thread Sverre Moe
I am enquiring the status of Pipeline Maven Integration Plugin. https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Maven+Plugin Is it still under development? Is it production ready? Created by the Snippet Generator: withMaven(jdk: 'jdk1.8.0_102', maven: 'apache-maven-3.3.3', mavenLocalRepo: '

Problem defining global variables

2016-12-15 Thread Sverre Moe
https://github.com/jenkinsci/workflow-cps-global-lib-plugin#defining-global-variables #vars/variables.groovy def setFoo(f) { this.foo = f } def isFoo() { return this.foo } #src/com/company/ci/Build.groovy void execute() { def foo = false if (env.BRANCH_NAME.equals("master")) { foo =

Re: Problem defining global variables

2016-12-19 Thread Sverre Moe
xecute() it sets foo to false, but it does not seem the Jenkinsfile is aware if that. Is it creating two instances of variables, one for Build and one for Jenkinsfile? torsdag 15. desember 2016 11.11.35 UTC+1 skrev Sverre Moe følgende: > > > https://github.com/jenkinsci/workflow-cps-glob

Re: Problem defining global variables

2017-01-05 Thread Sverre Moe
object. def build = new com.company.ci.Build() def variables = build.execute() def foo = variables.getFoo() def bar = variables.getBar() mandag 19. desember 2016 12.52.59 UTC+1 skrev Sverre Moe følgende: > > Is it a problem with scope perhaps? > > Tried setting foo first be

Re: Pipeline with notifyCommit

2017-01-17 Thread Sverre Moe
d > with/without UI-setting PollSCM enabled) without any success. > > For now I use Jenkins 2.8 and Pipeline Plugin 2.4 . > I get 'No Git consumers using SCM API plugin for: ' . > But I doesn't get 'No git jobs using repository: and branches: > > Kind reg

Getting Downstream Dependencies for Folder

2020-12-17 Thread Sverre Moe
Each projects in the folder have configured Dependencies. I can access them with project.getTransitiveDownstreamProjects() or getTransitiveUpstreamProjects() for each project. However I need to build all projects in order, based on their dependencies. Calling this for each projects will only get

Jenkins Groovy with Java Stream API

2021-02-07 Thread Sverre Moe
The following piece of code works fine in Groovy, but Jenkins complains about unexpected token: -> final def files = findFiles(glob: filePattern) final def rootNode = files.stream() .map(file -> findByContent(file.getPath())) .filter(node -> node != null) .findFir

Re: Jenkins Groovy with Java Stream API

2021-02-07 Thread Sverre Moe
as elegant as using Java Stream API. søndag 7. februar 2021 kl. 19:00:39 UTC+1 skrev Sverre Moe: > > The following piece of code works fine in Groovy, but Jenkins complains > about unexpected token: -> > > final def files = findFiles(glob: filePattern) > final def ro

Integrate with GitLab

2021-03-06 Thread Sverre Moe
What is the preferred way to Integrate both Jenkins and GitLab? What is the best way to do it? GitLab has deploy keys. I have created deploy keys for all 30 Jenkins build agents. I have added these deploy keys to each project. We only got 8 projects migrated from Gitolite at the moment. Adding a

GitLab Branch Source Plugin Documentation

2021-03-15 Thread Sverre Moe
More detailed information is needed on the documentation for GitLab Branch Source Plugin https://plugins.jenkins.io/gitlab-branch-source/ If one also has the GitLab Plugin, the Jenkins Configuration has two sections called GitLab. This should be mentioned so not to confuse. About iii. Credentia

Re: GitLab Branch Source Plugin Documentation

2021-03-15 Thread Sverre Moe
estions. Pull requests welcomed to > https://github.com/jenkinsci/gitlab-branch-source-plugin/blob/master/README.md > > > On Mon, Mar 15, 2021 at 9:23 AM Sverre Moe wrote: > >> More detailed information is needed on the documentation for GitLab >> Branch Source Plugin

GitLab Branch Source SSH Credentials

2021-03-16 Thread Sverre Moe
When we moved our git repositories to Gitlab, checkout failed when using Credentials for SCM Repository for our Multibranch Pipeline Projects. [Mon Mar 15 14:31:33 CET 2021] Starting branch indexing... > git --version # timeout=10 > git --version # 'git version 2.26.2' using GIT_SSH to set creden

Re: Integrate with GitLab

2021-03-16 Thread Sverre Moe
failed Analysis pending I do not know if this is possible with the GitLab API. I tried running the GitLab Plugin steps, within a GitLab Group Merge Request build. It did nothing. No information on GitLab MR when I sent updateGitlabCommitStatus lørdag 6. mars 2021 kl. 21:41:20 UTC+1 skrev Sverre

Re: Integrate with GitLab

2021-03-16 Thread Sverre Moe
-head". Is there any way to get the same with GitLab Group? The updateGitlabCommitStatus run within a Jenkinsfile on a GitLab Group Project does not make its way into GitLab. tirsdag 16. mars 2021 kl. 19:32:59 UTC+1 skrev Sverre Moe: > Is it possible to combine both *GitLab Plugin* with *

XML Job to DSL Job Plugin for Multibranch Pipeline

2021-03-22 Thread Sverre Moe
I have tried out the XML Job to DSL Job Plugin. It lists all single Pipeline jobs under a Multibranch Pipeline job. It does not seem to be able to export the Multibranch Pipeline Job. The DSL Job Plugin does seem to support Multibranch Pipeline jobs. There is no open issues to suggest this is a

GitLab Plugin Received Webhook Does not Scan

2021-03-22 Thread Sverre Moe
GitLab Plugin API access no longer works: It wirj The Jenkins job is a Multibranch Pipeline. The SCM is Git (not Git Project) This has worked before. Then we upgraded Jenkins LTS from 2.263 to 2.277 Along with many plugin updates. Now it no longer works. GitLab is able to send the notification, an

Re: GitLab Plugin Received Webhook Does not Scan

2021-03-22 Thread Sverre Moe
I even tried to uncheck the GitLab Configuration for authentication `Enable authentication for '/project' end-point` But alas, still not working. mandag 22. mars 2021 kl. 19:17:12 UTC+1 skrev Sverre Moe: > GitLab Plugin API access no longer works: > It wirj > The Jenkins j

Re: GitLab Plugin Received Webhook Does not Scan

2021-03-22 Thread Sverre Moe
. mars 2021 kl. 19:30:56 UTC+1 skrev Sverre Moe: > I even tried to uncheck the GitLab Configuration for authentication > `Enable authentication for '/project' end-point` > > But alas, still not working. > > mandag 22. mars 2021 kl. 19:17:12 UTC+1 skrev Sverre Moe: >

Re: XML Job to DSL Job Plugin for Multibranch Pipeline

2021-03-23 Thread Sverre Moe
Shame. I like Configuration by Code. We use mainly only Multibranch Pipeline. It is the one of the major things I think Jenkins is lacking. It has Configuration by Code for Jenkins Configuration, but limited for Job Configuration, supported by this plugin. mandag 22. mars 2021 kl. 22:29:26 UTC+

Re: XML Job to DSL Job Plugin for Multibranch Pipeline

2021-03-23 Thread Sverre Moe
I will check out the Job DSL Documentation and try my luck to write the configuration my self. I had hope this XML Job to Job DSL would help me save some time. multibranchPipelineJob("my_awesome_job") { } tirsdag 23. mars 2021 kl. 11:11:30 UTC+1 skrev Sverre Moe

SCM Repository Browser has Two options for GitLab

2021-04-25 Thread Sverre Moe
There are two options for GitLab when selecting a repository browser in the SCM configuration. 1) GitLab 2) gitlab The first one does not take any parameters. The second one takes URL and Version parameters. What is the difference? How does the first one get the correct URL to GitLab for the re

Pipeline Checkout: git branch - no branch

2021-04-30 Thread Sverre Moe
BRANCH1 + git branch * (no branch) BRANCH2 + git branch * (HEAD detached at 5abd860) The same project, but one branch does not return any branches on `git branch`. Any clue as to why? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsub

Re: Pipeline Checkout: git branch - no branch

2021-05-01 Thread Sverre Moe
tools support, making sure we have the same version of git installed everywhere. fredag 30. april 2021 kl. 12:36:24 UTC+2 skrev Sverre Moe: > BRANCH1 > + git branch > * (no branch) > > BRANCH2 > + git branch > * (HEAD detached at 5abd860) > > The same project, but one

Upgraded Plugins: Jenkins fails to start

2021-05-23 Thread Sverre Moe
I have upgraded all the plugins, then restarted Jenkins. It fails to start properly. Any idea what the problem here is about? The website is loading, but shows the following Stacktrace java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper at hudson.init.TaskMetho

Job Type Filter not working for GitLab Groups

2021-05-25 Thread Sverre Moe
Job Type Filter GitLab Group Include Matched Does not work. It includes ALL projects in Jenkins, Pipeline and Multibranch Pipeline jobs. All I want is to include only the GitLab Group projects. There are no issues registered. -- You received this message because you are subscribed to the Google

Re: Upgraded Plugins: Jenkins fails to start

2021-06-13 Thread Sverre Moe
No reason. We now use the Code Coverage API, so just uninstalled the JaCoCo Plugin. tirsdag 8. juni 2021 kl. 21:12:51 UTC+2 skrev ullrich...@gmail.com: > Is there a reason that you are still using the old and unmaintained JaCoCo > plugin and not the code-coverage-api plugin? The functionality s

Skip Initial Build on First Branch Indexing: Skipping for all new branches

2021-06-13 Thread Sverre Moe
I tried to add a BuildStrategy to the BranchSource, to skip the first branch indexing. I did this to avoid Jenkins to build all branches after changing the SCM configuration. Otherwise Jenkins would have to build 400+ repositoris with 20-30 branches in each. final def buildStrategies = new

Reverse Proxy Error reading from remote server

2021-06-14 Thread Sverre Moe
Recently we have been getting an Proxy Error each time we try to change some configuration in Jenkins. On Save and Apply, Jenkins gives us the following error: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request

Re: Skip Initial Build on First Branch Indexing: Skipping for all new branches

2021-06-18 Thread Sverre Moe
21 kl. 19:53:09 UTC+2 skrev Sverre Moe: > I tried to add a BuildStrategy to the BranchSource, to skip the first > branch indexing. > > I did this to avoid Jenkins to build all branches after changing the SCM > configuration. > Otherwise Jenkins would have to build 400+ reposito

Declarative Pipeline: Add trigger only on when condition

2021-10-22 Thread Sverre Moe
We have a branch in projectA called CICD. This branch we want to be triggered automatically after the master branch has built. However we do not want user branches of the CICD to be triggered automatically. Is it possible to avoid configuring a trigger if the branch is not CICD? This is probabl

Re: Declarative Pipeline: Add trigger only on when condition

2021-10-27 Thread Sverre Moe
User branches are like origin/username/CICD Official branches are origin/CICD og origin/master All part of the same project. CICD branch has a different Declarative Pipeline for CICD release build and deployment. Same goes for user branches that are based on this CICD branch. All other branches

Link artifacts to external location

2021-12-09 Thread Sverre Moe
Can Jenkins show artifacts stored in external repositories? We want to avoid storing the build artifacts on the Jenkins server. This takes up a lot of space. Even though we have limited artifacts retention to the last 5 builds only. archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.rpm

Re: Link artifacts to external location

2021-12-10 Thread Sverre Moe
https://brokenco.de/2018/01/04/external-artifacts-jenkins.html Not an ideal solution. More of a hack. torsdag 9. desember 2021 kl. 13:22:20 UTC+1 skrev Sverre Moe: > Can Jenkins show artifacts stored in external repositories? > > We want to avoid storing the build artifacts on th

Re: Link artifacts to external location

2021-12-10 Thread Sverre Moe
ading to a Maven repository. Strange considering: "This plugin goal is to upload artifacts generated from non-maven projects to Nexus" Perhaps I would need to make my own customer Artifact Manager. fredag 10. desember 2021 kl. 13:44:08 UTC+1 skrev Sverre Moe: > https://brokenco

Re: Link artifacts to external location

2021-12-10 Thread Sverre Moe
I do not have any additional artifact managers installed. Strange no one has made other artifact managers for like Nexus or plain file storage on a file server. fredag 10. desember 2021 kl. 14:08:46 UTC+1 skrev dheinric: > Am Freitag, dem 10.12.2021 um 04:58 -0800 schrieb Sverre Moe: > > *P

DependencyGraph: Get Ordered Transitive Dependencies

2022-01-13 Thread Sverre Moe
We are using Jenkins Pipelines, but need to maintain build dependencies. Since DependencyGraph does not work on Pipeline jobs, I have created a set of FreeStyle jobs for each Multibranch Pipeline job. We get the upstream dependencies for each Pipeline job (from the RPM spec file BuildRequires),

Re: Pipeline as YAML

2022-01-14 Thread Sverre Moe
Pipeline as YAML is interesting, but it looks to still be in development. https://www.jenkins.io/blog/2018/04/25/configuring-jenkins-pipeline-with-yaml-file/ https://www.jenkins.io/projects/gsoc/2020/project-ideas/pipeline-as-yaml-experiment/ https://plugins.jenkins.io/pipeline-as-yaml/ fredag 24

SSH Pipeline Steps: Multiline script has no output

2022-01-19 Thread Sverre Moe
When I have a script with multiple lines, I do not get any output from the script in the console output of the pipeline job. https://www.jenkins.io/doc/pipeline/steps/ssh-steps/#sshscript-ssh-steps-sshscript-execute-scriptfile-on-remote-node pipeline { agent { label 'docker-agent' } en

Re: SSH Pipeline Steps: Multiline script has no output

2022-01-19 Thread Sverre Moe
This plugin has not been updated much the last 2-3 years. https://github.com/jenkinsci/ssh-steps-plugin I wonder if I should abandon it. onsdag 19. januar 2022 kl. 12:33:24 UTC+1 skrev Sverre Moe: > When I have a script with multiple lines, I do not get any output from the > script

Storing and accessing a Jobs previous Jenkins build information

2015-02-15 Thread Sverre Moe
I am using Jenkins to build my C/C++ code by executing automake from a shell script. Is there anyway I could access the previous build information from my Jenkins build script? SUCCESS or FAILURE state and the Build version. If this information is not available could I use a database plugin to

Re: Storing and accessing a Jobs previous Jenkins build information

2015-02-15 Thread Sverre Moe
Found the "Audit To Database Plugin" that seems can store build information in a database. I did not find any information that I could retrieve it in my build script. https://wiki.jenkins-ci.org/display/JENKINS/Audit+To+Database+Plugin søndag 15. februar 2015 12.29.47 UTC+1 skrev

Groovy build script: What triggered the build

2015-02-16 Thread Sverre Moe
Is it possible to find out who or what triggered the build from a Groovy script? Either an SCM change, another project or user. I have just begun reading a little about Groovy and the Jenkins API. I want to check for the following conditions and build accordingly. if (trigger == scm) { build_

Re: Groovy build script: What triggered the build

2015-02-19 Thread Sverre Moe
følgende: > > There is a BUILD_CAUSE environment variable that can have values like: > SCMTRIGGER, MANUALTRIGGER, and others > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Sverre Moe > *Sent:* Monday, February 16, 2

Jenkins API with Groovy: setUpstreamProjects

2015-02-20 Thread Sverre Moe
I want to dynamically set the downstream projects with a Groovy script. I can get the list of downstream projects, but I cannot find a setter. hudson.model.Hudson.instance.items.each { project -> if (project.name.equals("myProject")) { project.getUpstreamProjects().each { upstreamPro

Re: Groovy build script: What triggered the build

2015-02-23 Thread Sverre Moe
an get the user id > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Sverre Moe > *Sent:* Thursday, February 19, 2015 6:54 AM > *To:* jenkins...@googlegroups.com > *Subject:* Re: Groovy build script: What triggered the build > >

Learning Jenkins Groovy with Jenkins API

2015-02-23 Thread Sverre Moe
I am trying to learn Groovy and using it in a Jenkins build script. So far I have run some simple groovy in the script console to Jenkins. http://jenkins:8080/script Have tried a simple Groovy script for listing all environment variables, cut'n'paste code from some examples on the web. Tried to

Re: Learning Jenkins Groovy with Jenkins API

2015-02-23 Thread Sverre Moe
at hudson4234154804113492123.run(hudson4234154804113492123.groovy:10) mandag 23. februar 2015 15.15.50 UTC+1 skrev Sverre Moe følgende: > > I am trying to learn Groovy and using it in a Jenkins build script. > > So far I have run some simple groovy in the script console to Jen

Re: Learning Jenkins Groovy with Jenkins API

2015-02-23 Thread Sverre Moe
:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Sverre Moe > *Sent:* Monday, February 23, 2015 9:47 AM > *To:* jenkins...@googlegroups.com > *Subject:* Re: Learning Jenkins Groovy with Jenkins API > > > > Forgot to m

Re: Learning Jenkins Groovy with Jenkins API

2015-02-24 Thread Sverre Moe
n, Feb 23, 2015 at 9:19 AM, Sverre Moe > wrote: > > Found the example on the web. Much of the Groovy examples I have seen > > entailed using the Jenkins Remote API. I want to use the Jenkins API, > > running the Groovy script inside jenkins. > > > > Haven'

Conditional BuildStep Git Tag Token Macro

2015-02-24 Thread Sverre Moe
I have defined a conditional build step that should check for a given git tag before executing a shell script. Using the Conditional BuildStep Plugin Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmac

Re: Conditional BuildStep Git Tag Token Macro

2015-02-25 Thread Sverre Moe
file. 3) I use this environment property in Conditional BuildStep: Conditional Step (single) -> Not -> Boolean -> Token = ${ENV,TAGGED} Would be much better if the Git Parameter Plugin could be used instead. tirsdag 24. februar 2015 10.02.31 UTC+1 skrev Sverre Moe følgende: > >

Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Sverre Moe
The Groovy Postbuild plugin exposes some predefined variables like. - hudson - the current Hudson instance (javadoc ). I have checked the Javadoc and it looks like much of hudson instance is deprecated. *getInstance

Re: Groovy Postbuild Plugin: Access Jenkins and not Hudson instance

2015-03-04 Thread Sverre Moe
skrev Daniel Beck følgende: > > It's the same instance. > > On 04.03.2015, at 14:02, Sverre Moe > > wrote: > > > The Groovy Postbuild plugin exposes some predefined variables like. > > • hudson - the current Hudson instance (javadoc). > > >

Jenkins API + Maven + Eclipse

2015-03-05 Thread Sverre Moe
Since I am not familiar with the Jenkins API, I would like to program my Groovy scripts in Eclipse. Having to check the Javadocs every time is quite tedious. Having to write the groovy in Jenkins (in a simple text area) and test it by starting the build is taking forever. I was thinking of crea

Re: Jenkins API with Groovy: setUpstreamProjects

2015-03-09 Thread Sverre Moe
, > then B is indeed downstream to A (and A is upstream to B). > > About doing that in Groovy, can't have a look just now, but you have a lot > of examples here: > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console should > be a good starting point. >

Define upstream projects without build trigger

2015-03-10 Thread Sverre Moe
Is it possible to define upstream projects without adding a build trigger with "Build after other projects are built" ? According to the XML and JSON API there is both downstreamProjects and upstreamProjects available, but in config.xml for each job it is defined in a build trigger config.xml

Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
mething you want to offer as a simple build feature, then > writing a plugin might even be a good and quite simple way too. > > Cheers > Le 23 févr. 2015 14:17, "Sverre Moe" > a > écrit : > >> It seems also like there is access to the build cause in the J

Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
as its upstream project. onsdag 11. mars 2015 09.12.44 UTC+1 skrev Björn Pedersen følgende: > > Hi, > > maybe it is issue #24785 > <http://issues.jenkins-ci.org/browse/JENKINS-24785> what is causing this > behaviuor? > > Björn > > Am Mittwoch, 11. März 20

Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
. mars 2015 10.06.31 UTC+1 skrev Sverre Moe følgende: > > Seems Jenkins issue #24785 was fixed by introducing ROOT_BUILD_CAUSE. It > is a little bit helpful, but does not help with the downstream triggered > projects. > ProjectA is triggered and ROOT_BUILD_CAUSE == MANUALTRIGGE

Multi-configuration jobs: Groovy Axis with Git branches

2015-03-20 Thread Sverre Moe
Is it possible to define an Axis for a given list of Git branches? Perhaps with GroovyAxis. I already have a slave axis building on 3 different Linux distributions. So I would end up with a configuration matrix like this: openSUSESLES64SLES32 BranchA x

Display name different from Job name

2015-04-13 Thread Sverre Moe
I have duplicated jobs in different views. Development: Job View1: Job1 View2: Job2 View3: Job3 When I am standing in View3, is it possible to show job/project name Job instead of Job3? Have a different display name that is different from Project name. Job to Job3 is the same project, but with

Re: Display name different from Job name

2015-04-13 Thread Sverre Moe
I found setting Display Name. Problem with this is under view All, there will be a number of projects with the same display name. One has to hover over them to find out which project name it is. mandag 13. april 2015 14.26.56 UTC+2 skrev Sverre Moe følgende: > > I have duplicated j

Re: Display name different from Job name

2015-04-13 Thread Sverre Moe
pril 2015 at 13:26, Sverre Moe > > wrote: > >> I have duplicated jobs in different views. >> >> Development: Job >> View1: Job1 >> View2: Job2 >> View3: Job3 >> >> When I am standing in View3, is it possible to show job/project name Job

Git Publisher: EnvVar in tag name

2015-05-04 Thread Sverre Moe
I am trying to use Git Publisher to create a git tag, but I cannot get it to use an Environment variable in the tag name: Is it even possible to supply an Environment Variable as part of a Git tag name? > git tag -l v$VERSION # timeout=10 > git tag -a -f -m Jenkins Git plugin tagging with v$V

Re: Git Publisher: EnvVar in tag name

2015-05-04 Thread Sverre Moe
I can create a Git tag using other environment variables such as BUILD_TAG, but why isn't my own environment variables available during the publish stage. My own environment variables are available during the build stage. mandag 4. mai 2015 10.26.05 UTC+2 skrev Sverre Moe følgende: >

Re: Git Publisher: EnvVar in tag name

2015-05-04 Thread Sverre Moe
t;Properties Content" are. tirsdag 5. mai 2015 08.47.32 UTC+2 skrev Sverre Moe følgende: > > I can create a Git tag using other environment variables such as > BUILD_TAG, but why isn't my own environment variables available during the > publish stage. My own environment va

Re: Git Publisher: EnvVar in tag name

2015-05-05 Thread Sverre Moe
environment variables are not available there. How can I get the Matrix parent to also get the environment variables? tirsdag 5. mai 2015 08.58.14 UTC+2 skrev Sverre Moe følgende: > > Something strange: > I am using Inject Environment Variables, "Inject environment variables to > th

Re: Git Publisher: EnvVar in tag name

2015-05-05 Thread Sverre Moe
It seems there is an registered JIRA issue for this problem https://issues.jenkins-ci.org/browse/JENKINS-15507 Its 3 years old, it has not been fixed, nor updated for a year. tirsdag 5. mai 2015 09.16.23 UTC+2 skrev Sverre Moe følgende: > > I found the reason, but still not the solution.

Re: Git Publisher: EnvVar in tag name

2015-05-06 Thread Sverre Moe
Anyone has any idea how I can get my build environment variables over to the matrix parent? tirsdag 5. mai 2015 10.59.15 UTC+2 skrev Sverre Moe følgende: > > It seems there is an registered JIRA issue for this problem > https://issues.jenkins-ci.org/browse/JENKINS-15507 > > Its

Triggers not working after adding Reverse Build triggers with Groovy

2015-08-21 Thread Sverre Moe
I have added some reverse build triggers with a Groovy script. Unfortunately the triggers does not work properly. It all looks like its ok, but after an upstream project has been built I get the following NullPointerException: Warning: you have no plugins providing access control for builds, so

Re: Triggers not working after adding Reverse Build triggers with Groovy

2015-08-21 Thread Sverre Moe
. august 2015 09.23.17 UTC+2 skrev Sverre Moe følgende: > > I have added some reverse build triggers with a Groovy script. > Unfortunately the triggers does not work properly. > > It all looks like its ok, but after an upstream project has been built I > get the following Nu

Reverse Build Trigger: NullPointerException

2015-08-28 Thread Sverre Moe
Using Jenkins 1.626 I have configured 19 projects with a reverse build trigger "Build after other projects are built". After building the upstream project, these 19 projects (minus those disabled) should be triggered as well. I have rechecked the configuration for every downstream projects.

Re: Reverse Build Trigger: NullPointerException

2015-08-28 Thread Sverre Moe
2015 12.54.11 UTC+2 skrev Sverre Moe følgende: > > Using Jenkins 1.626 > > > I have configured 19 projects with a reverse build trigger "Build after other > projects are built". > > After building the upstream project, these 19 projects (minus those disabled) &g

Re: Reverse Build Trigger: NullPointerException

2015-08-28 Thread Sverre Moe
. august 2015 12.54.11 UTC+2 skrev Sverre Moe følgende: > > Using Jenkins 1.626 > > > I have configured 19 projects with a reverse build trigger "Build after other > projects are built". > > After building the upstream project, these 19 projects (minus those disabled) &g

Re: Reverse Build Trigger: NullPointerException

2015-09-01 Thread Sverre Moe
I don't understand what the problem is, but it is happening again, and none of the projects are disabled this time. fredag 28. august 2015 15.25.23 UTC+2 skrev Sverre Moe følgende: > > I had 3 downstream projects which was disabled. Two of them caused no > trouble, because it jus

Re: Reverse Build Trigger: NullPointerException

2015-09-01 Thread Sverre Moe
I found an active bug report that is relevant for my problem https://issues.jenkins-ci.org/browse/JENKINS-29807 tirsdag 1. september 2015 09.06.33 UTC+2 skrev Sverre Moe følgende: > > I don't understand what the problem is, but it is happening again, and > none of the projects are

Deploy RPM artifacts to Nexus Maven repository

2015-09-14 Thread Sverre Moe
The Post build action "Deploy artifacts to maven repository" is only possible for a Jenkins maven project. I have several C++ multi-configuration projects and I want to publish my RPM artifacts to a Nexus repository. I could as a last resort just copy the RPM files directly to the storage wit

Update jobs via Script Console does not take effect

2015-09-21 Thread Sverre Moe
It seems when I updated a Job configuration with Groovy in the Script console it didn't really take effect. def jenkinsInstance = jenkins.model.Jenkins.getInstance() def developmentView = jenkinsInstance.getView("Development") developmentView.getItems().each { project -> def trigger = new hud

Re: Update jobs via Script Console does not take effect

2015-09-25 Thread Sverre Moe
ndag 21. september 2015 18.21.14 UTC+2 skrev Daniel Beck følgende: > > You forgot to `start(Job, boolean)` the trigger you added. You'll probably > also need to `stop()` any existing SCMTrigger that gets replaced by yours. > > On 21.09.2015, at 16:11, Sverre Moe > > wrote:

Trigger build on downstream projects MatrixProject

2015-09-29 Thread Sverre Moe
Is there any good solution to trigger build of downstream projects on a Multi-configuration project? Since I want the upstream project to fail when the downstream project fails, I need to use the Build Step "Trigger/call builds on other projects" with Blocking. Problem with this on a multi-con

LDAP in Jenkins Fails, but ldapsearch works

2015-10-09 Thread Sverre Moe
I have configured authentication with LDAP My LDAP Configuration: Server: helios.company.com root DN: dc=arctic,dc=company,dc=com User search base: ou=users User search filter: samaccountname={0} Group membership: Parse user attribute for list of groups => memberOf Manager DN: ldapu...@arctic.comp

Re: LDAP in Jenkins Fails, but ldapsearch works

2015-10-09 Thread Sverre Moe
N\username does not work. fredag 9. oktober 2015 13.29.46 UTC+2 skrev maciej følgende: > > Sverre Moe (2015-10-09 09:22): > > User search base: ou=users > > > I think it should be "CN=Users". > > > User search filter: samaccountname={0} > > Not sure if case

Re: LDAP in Jenkins Fails, but ldapsearch works

2015-10-12 Thread Sverre Moe
am using a Proxy, but both Jenkins and Java has been configured to use this proxy. fredag 9. oktober 2015 13.47.32 UTC+2 skrev Sverre Moe følgende: > > I have done nothing with the LDAP configuration, but now it works. It > takes 30 seconds before I'm logged in. > The only thing

<    1   2   3   4