I tried to bind the remote url of Rundeck job with the job api of jenkins as options provider.
So i use the api that give jenkins to call my job with this url http://localhost:8080/job/my_job/api/json?tree=jobs[name] who give this
{"_class":"org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject","jobs":[{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowJob","name":"lenormandSeb-patch-2"},{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowJob","name":"master"},{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowJob","name":"update%2Fcodesniffer"}]}
But when i use this url on rundeck as remote url, only "_class" and "jobs" are showing on select.
Did i miss something on the Rundeck job configuration ?
enter image description here
thank
That's because Rundeck only admits this kind of format as a remote option. To "understand" other "formats" the quickest way is to develop a custom option plugin that gives options using jq similar to this one, you can take a look at this.
Related
I would like to pull certain artifacts from Artifactory(JFrog) into my Rundeck Server so as to deploy them on remote nodes.
Is there any Artifactory plugin that I can add to Rundeck..
Thanks in advance.
You can use the Artifactory API REST on some python/bash script step, take a look at this. Here the full reference.
We are struggling to find a way to use Contentful webbooks with Jenkins because we want to build a new page/content on contentful without manually deploying.
I didn't find useful/relevant information so far. Does anybody know if it's possible?
Thank you,
I suggest you combine the generic webhook plugin with a custom Contentful Webhook.
You first need to configure the generic webhook plugin in jenkins to trigger
the job you want.
Then you create a Contentful webhook pointing to your jenkins url
http://<YOUR JENKINS URL>/jenkins/generic-webhook-trigger/invoke
If you have multiple jobs in jenkins and you only want to trigger a specific one you can use tokens in your jenkins plugin config.
http://<YOUR JENKINS URL>/jenkins/generic-webhook-trigger/invoke?token=abc123
I'm using the Nexus Jenkins Plugin for the uploading artifacts to the Nexus IQ server.
It looks like this inside the pipeline code:
sh "curl http://nexus-artifact-server/***/artifact.war --output artifact.war"
nexusPolicyEvaluation failBuildOnNetworkError: false, iqApplication: 'artifact.war', iqScanPatterns: [[scanPattern: '**/*.war']], iqStage: 'build', jobCredentialsId: ''
nexusPolicyEvaluation is a built-in function of the Nexus Jenkins Plugin which is doing some POST-requests to the IQ Server I think. The actual Server URL is configured inside Jenkins's system configuration i.e. it is hardcoded.
Is there any way to resolve and inject the URL dynamically? In some cases I may need a two different Nexus IQ servers but the Plugin constraints me with the single one.
Unfortunately can't find any related info at the official page
Unfortunately there is no way to configure a several Nexus IQ instances via the Jenkins Nexus Plugin. Which is a little bit strange because some teams may decide to use one IQ instance for dev, one for testing etc.
The soultion is the official Nexus IQ CLI. Works and configures perfectly.
I am new to Rundeck and I managed to create project, nodes and jobs in Rundeck
I created a simple parameterized job in Jenkins and I input IP Address (eg 10.10.20.30)
I would like to pass $IP_ADDRESS from Jenkins to Rundeck.
I tried adding ip_address=$IP_ADDRESS in Jenkins post-build action of Rundeck but I am unable to echo IP_ADDRESS from Rundeck
I googled a lot but I did not get enough information. Any help is highly appreciated
You can point to Rundeck job with options using Rundeck API like this: https://stackoverflow.com/a/54593735/10426011 but the best way to integrate Rundeck with Jenkins is to use the Rundeck plugin for Jenkins, check this: https://wiki.jenkins.io/display/JENKINS/RunDeck+Plugin
I want to pull file or directory from a remote linux machine to Jenkins machine. Is there any Jenikns plugin available?
I am using one plugin "Publish Over SSH" and I am able to transfer files but not receive. I don't want to write/expose password to scp command line. Please suggest a way.
probably you're looking for this https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin
You may not need to expose the credentials in the script. You can manage those in jenkins and pass them as parameters which can be hidden in log. Refer the links below.
https://wiki.cloudbees.com/bin/view/Jenkins+Enterprise/InjectingSecrets
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin