Jenkinsfile and its complete properties list

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkinsfile and its complete properties list

JV-3
Hello everyone.

I'm new here and hope I won't break any rule on my first day :)

I'm trying to use Jenkinsfile as a complete source to replace all Jenkins job configuration. I still can't find though how to set the following property : The token for remotly triggering the job.

Do you have any information on how to set it ?

PS : I'm using Jenkins 2.73.2

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d9731b68-2439-4741-a8c1-32b4853b5a1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkinsfile and its complete properties list

jerome-2
Not sure I got this right but if you are looking how the system check for modification and trigger new execution, Jenkinsfile need a successful manual build first. This will record the repos checkout and according to the jobs settings and the checkout options, can start polling/trigger new execution.

NOTE: Warning/Error build don't record the repos to be poll, you need a successful build for this to happen for the first time at least.

If you are looking how to trigger a build from a remote command: https://wiki.jenkins.io/display/JENKINS/Remote+access+API

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/58720d40-8f06-48c2-b426-6a6add3ebbae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkinsfile and its complete properties list

itchymuzzle
If you use Github or Bitbucket there are plugins for each of those. 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d8881445-7f1e-494a-a701-ccd672add272%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkinsfile and its complete properties list

JV-3
In reply to this post by JV-3
Let me rephrase the issue :
a/ here is my configuration
      - Jenkins #1 has been installed on network #1
      - Jenkins #2 has been installed on network #2
      - the only allowed port between network #1 and network #2 is HTTP/80 (from #1 to #2 only)
      -I'm using Jenkins #1 to trigger jobs on Jenkins #2

b/ I've been using remote access API fr a while on Jenkins 1.x and its working just fine :)

c/ I wanted to use the same feature on Jenkins 2.0, only with a 100% Jenkinsfile configuration.
I can start remote jobs using curl/wget, but I cannot set the token through a Jenkinsfile property :(

Is it just possible ? Do I have to manually update all jobs ?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4d3b5797-32c2-4b95-84d1-cfacc2ef1546%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.