Forum Discussion

mrh's avatar
mrh
New Contributor
2 years ago
Solved

Connect Jenkins Plugin to Zephyr Scale Server with token

I have Zephyr Scale Server installed on a locally hosted Jira server. Nothing is in the cloud. I log in to Jira with OAuth using a smartcard - I do not have a password. How can I connect the Jenkins plugin (https://plugins.jenkins.io/tm4j-automation/) to my Jira instance?

 

I can generate personal access tokens and I've previously used them to interact with our Zephyr Scale instance via the REST API, so I know it works. I just can't figure out how to get the *Zephyr Scale plugin for Jenkins* to use it.

  • Hey dreddyc 

     

    Dunno whether this will help, but I asked a similar question a while back as i was tasked with getting ReadyAPI! plugged into a CI/CD/CT jenkins pipeline for Azure.  The link is here

     

    Just a bit of info - the unflattened composite file rather than using the flat single project.xml is to handle multiple users accessing the same content with identical checkouts.  Because youre splitting the project.xml into multiple individual components, this enables different users to change the content without having horrific conflicts when you merge back to master.

     

    what components are you using in your CI/CD pipeline,  Are you using the Azure plugin?  what build agent are you using?, etc., etc.  These sorts of questions alter how you setup and execute your tests with the above.

     

    I never actually completed setting my my Azure CI/CD/CT pipeline for readyAPI! cos I got pulled onto other stuff, so the above is all I have I'm afraid - perhaps some of the other lads/ladies can give you a better answer.

     

    cheers,

     

    rich

     

     

     

     

    ta

     

    rich

2 Replies

  • MisterB's avatar
    MisterB
    Icon for Champion Level 3 rankChampion Level 3

    I see you haven't yet received a reply to your post.  You might want to try SmartBear support for help.  You can reach them here: SmartBear Support

     

    Alternatively, you could try Bing AI or ChatGPT?  Here's an example when I asked how to add OAuth into a Jenkins pipeline.  It might not be what you're looking for, but you might get some good clues from it if you ask the right questions! 🙂

     

    To add OAuth to your Jenkins pipeline, you can use the Jenkins OAuth plugin. You can install it by following these steps:
    - Download the Jenkins WAR using wget.
    - Start Jenkins.
    - Log in to the Jenkins admin console.
    - Install the Jenkins OAuth plugin.
    - Register the Jenkins OAuth application on GitHub.
    - Configure OAuth security in Jenkins.
    - Create a Jenkins job.
    - Run the Jenkins job.

    You can also use Github Personal Access Token in Jenkins by adding the token to Jenkins credentials store and selecting Kind "Secret text" (not the default "Username and password"), then paste the token as Secret and choose some ID.
    You can find more information on how to use OAuth Credentials in Jenkins by visiting this link .

     

  • mrh's avatar
    mrh
    New Contributor

    Update: I used a random text generator, which gave me 'mdqsnjajp yfdtcb qsjavqhqbhlxg eeucvflqpvleeqtjgiroow', which ended up being just as useful as chatgpt's answers.

     

    In the time between posting the original and now, the plugin was updated to support personal access tokens as a password. After I upgraded to Jenkins 2.361, although I assume newer versions will be okay, the plugin installed okay.