Re: Multibranch pipeline / Gitlab integration: tag push events

2018-03-29 Thread Samuel Mutel
https://issues.jenkins-ci.org/browse/JENKINS-45838 Le jeudi 29 mars 2018 14:13:35 UTC+2, Samuel Mutel a écrit : > > Hello, > > I would like to know if someone has already setup the multibranch pipeline > and the gitlab integration to start a job when a tag is pushed? > > I

Multibranch pipeline / Gitlab integration: tag push events

2018-03-29 Thread Samuel Mutel
Hello, I would like to know if someone has already setup the multibranch pipeline and the gitlab integration to start a job when a tag is pushed? I setup the integration in GITLAB project, I setup also the multibranch pipeline. When a code is pushing to the master branch, it is working fine. Bu

Re: Bash variables defined during a step

2018-03-06 Thread Samuel Mutel
Yes it is what I did and I think it is the best way. Thanks. Le 6 mars 2018 5:48 PM, "Victor Martinez" a écrit : > GString might be a bit crazy to escape some chars, maybe it's worthy to > create a sh file somewhere and just call it? Then you get the benefits of > being able to call/use it witho

Bash variables defined during a step

2018-03-06 Thread Samuel Mutel
Hello, I would like to define a variable in shell and to use it. How can I do this? For example: sh "find packages -name internal-* -type d -exec bash -c 'for arg; do export VERSION=\$(grep \${arg##*/} nexus-cicd-versions.txt | cut -d: -f2);sed -i \'s/#VERSION#/${env.VERSION}/g\' \$arg/0/packa

Question about marathon deployment

2018-03-02 Thread Samuel Mutel
Hello, To start a docker container through marathon, I use this piece of code which is working fine: withCredentials([ string(credentialsId: '1d759531-1e0d-40b8-a434-911d97c58d36', variable: 'DCOS_PRIVATE_KEY') ]) { marathon( url: 'http://10.86.155.5:8080', forceUpdate: true, cr

Re: Build step and multibranch job

2018-03-01 Thread Samuel Mutel
The second one is working fine. I forgot to specify the branch name. Here is the piece of code: build( job: 'CIO-CICD/universe/master', wait: false ) Thanks ! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Build step and multibranch job

2018-03-01 Thread Samuel Mutel
Hello, I would like to start a multibranch job from another job in a jenkinsfile. So I put this piece of code: build( job: 'CIO-CICD/universe', wait: false ) But it does not seems to work correctly ... Any idea? How to specify the branch name? Thanks. -- You received this message because

Re: Question about credentialsId in marathon request

2018-02-15 Thread Samuel Mutel
;uid":"cicd","login_endpoint":"${env.DCOS_ENDPOINT}","scheme":"RS256","private_key":"$DCOS_PRIVATE_KEY"}' , filename: 'Marathon.json' ) } Le mercredi 14 février 2018 10:38:02 UTC+1, Samuel Mutel a

Question about credentialsId in marathon request

2018-02-14 Thread Samuel Mutel
Hello, In the jenkins documentation I found this way to specify the credentials in marathon deployment: credentialsId: '{"uid":"jenkins","login_endpoint":"https://leader.mesos/acs/api/v1/auth/login","scheme":"RS256","private_key":"-BEGIN RSA PRIVATE KEY-\nMIIEpAI..."}' It works fine

Multibranch pipeline - Gitlab CE - Hook

2017-11-09 Thread Samuel Mutel
Hello, I would like to link Jenkins with multibranch pipeline project and GITLAB CE in order to automate: - Create / Delete branches automatically in Jenkins when it's done in GIT - Launch a build each time a commit or pull request is performed What is the best way to do that? Thanks. --

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-30 Thread Samuel Mutel
It works now with Git Plugin 3.6.3. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussio

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-26 Thread Samuel Mutel
Indexing requires read access to the repository... so that it can, you know, see what branches have a Jenkinsfile => OK but why the module does not use the SSH key for that operation? Is-it a bug? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" grou

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-26 Thread Samuel Mutel
Hello, I think I found the explanation of my issue. I setup the private key directly on the jenkins home and it works fine. All my project are private in GITLAB and the module Multibranch Pipeline is not using the private key setup inside the job for the branch indexing. The module use the priva

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Samuel Mutel
I tried also to "enter directly" the private key but it does not work. Something curious ... When I parse the log file of the SSH server located on the GITLAB server, I see error message related to a connection with login/password and not related to a connection with ssh key. It's mean that the j

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Samuel Mutel
Here is my multibranch config: Here is my credential config:

Multibranch Pipeline - GIT - SSH authentication

2017-10-24 Thread Samuel Mutel
Hello, I setup a multibranch pipeline job in Jenkins. In branch sources, I used GIT. With this job, for GIT authentication I tried to use credentials stored in Jenkins: - SSH private key stored in the master - Login/Password Unfortunately it does not work ... ERROR: [Tue Oct 24 16:15:13 C