I am using the Stash Notifier plugin on jenkins to notify Stash of sucessful builds. When you click on the link for the build (Green tick link) in Stash, it pops up a dialog with a link back to jenkins. The URL it uses to link back to jenkins is wrong. I can't see anywhere to configure it.
Does anyone know where this link can be configured to use the right URL.
Log into jenkins as Admin
Select Jenkins (top left of screen)
From the drop down select 'Manage Jenkins'
Select 'Configure System'
About half way down the page there is a menu Jenkins Location, and under that there is an item 'Jenkins URL'
Add the correct URL
Save and exit
Related
How to enable the "Trigger builds remotely (e.g., from scripts)" section in a Jenkins file for a pipeline job. Want to achieve the same task of freestyle project in pipeline.
Jenkins Pipeline job also provides the same option for remote build trigger. There is no need for additional plugins or workarounds.
Jenkins jobs can also be triggered by user level authentication tokens. To enable user level authentication token please follow below steps.
Log in to Jenkins.
Click you name (Upper-right corner).
Click Configure (Left-side menu).
Use "Add new Token" button to generate a new one then name it.
Note: You must copy the token when you generate it, You cannot view the token afterwards.
Revoke old tokens when no longer needed.
enter image description here
Please, i am unable to see the pipeline tab on Jenkins page as shown in pic. Can someone comment on this?
if you mean you can't see an option to create a pipeline job; then for that, you need to click on "New item" on the top in the left-hand menu. Second - you need the pipeline plugin https://plugins.jenkins.io/workflow-aggregator
I have a Jenkins pipeline that I have setup with a project I have on GitHub. Initially, I manually initiated a build each time I changed my code by clicking the "Build Now" option. However, I did two things to make my process easier:
I setup a GitHub hook to run the build I defined in my Jenkinsfile after each push to my master branch
I setup a periodic build to build every hour
I left my Jenkins for a day, came back, and everything, even from the dashboard, looks different.
For example:
My dashboard used to have these options:
New Item
People
Build History
Project Relationship
Check File Fingerprint
Manage Jenkins
My Views
Lockable Resources
Credentials
New View
The current dashboard only has three of those options:
People
Build History
Credentials
Also, when I clicked on my pipeline, the options I had were:
Status
Changes
Build Now
Delete Pipeline
Configure
Full Stage View
Rename
Pipeline Syntax
Whereas now, they are:
Status
Full Stage View
GitHub Hook Log
Git Polling Log
How can I change my configurations/settings to see the pages the way I saw them before? It seems I can't create any new items or change my current pipeline, which are things I may need to do in the future.
It turns out I wasn't logged in. I didn't think the initial pages would even show up if I hadn't been logged in, so I didn't even consider it to be a possibility. I logged in and all my issues were resolved.
I'd like to link to a specific jenkins pipeline stage to share that link with my team mates if there's any issue and to link github checks to it.
If I copy and paste the URL after clicking a stage it loads for the next person that clicks on it, so I'm wondering if there's any way to get this URL.
I have installed Build Token Root Plugin (Version 1.2) in Jenkins. But the "Trigger builds remotely" options doesn't appear.
The end goal is to trigger Jenkins from SlackBot. I followed this tutorial.
I must be doing something very silly. Please help.
Stackoverflow articles referred with no vain
Hudson - missing Trigger builds remotely option
Triggering builds remotely in Jenkins
You need to read it: Quick and Simple Security
Enable the security setting, go to http://yourhost/jenkins/configureSecurity and select enable security, then choose Delegate to servlet container for security realm and Legacy mode for authorization strategy. Or, you may click on the Manage Jenkins link on the left side of the main Jenkins dashboard page to get to the configuration page, then click Configure Global Security.
To log into Jenkins go to http://yourhost/jenkins/loginEntry, or click on the login link located on the top right hand corner of any Jenkins Dashboard page.
This will bring you to the Login page. Enter the user name and password, and click on the Submit button. This will take you back to the main Jenkins dashboard. You will now see the Manage Jenkins link on the left side of the page.
To logout simply click the logout link located on the top right hand corner of any Jenkins dashboard page.
Anonymous read access required
The preceding instructions require that anonymous users have read access to Jenkins. If you disable overall read access for anonymous users, the Build Token Root Plugin allows use of tokens.
Be carreful while applying the accepted answer. It locked me out of Jenkins.
Here is an alternative:
* Security Realm: Jenkins' own user database (uncheck Allow users to sign up)
* Authorization: Logged-in users can do anything
The “Trigger builds remotely” then appears.