XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have installed and configured git parameter plug in so I can deploy a job and select the branch with the code I wrote instead of code of master. Thing is that eventhough I select the branch I created, the job starts running on master. Here are some screenshots of what I have configured and when job is run.

       

        Attachments

        1. br.JPG
          br.JPG
          39 kB
        2. Capture.JPG
          Capture.JPG
          79 kB
        3. Capture.JPG
          Capture.JPG
          59 kB
        4. Capture.JPG
          Capture.JPG
          50 kB
        5. Capture.JPG
          Capture.JPG
          35 kB
        6. Capture1.JPG
          Capture1.JPG
          86 kB
        7. Capture2.JPG
          Capture2.JPG
          34 kB
        8. Capture3.JPG
          Capture3.JPG
          53 kB
        9. Capture4.JPG
          Capture4.JPG
          57 kB
        10. chose_branch.png
          chose_branch.png
          34 kB
        11. logs.png
          logs.png
          184 kB
        12. pip2.JPG
          pip2.JPG
          119 kB
        13. pip2.JPG
          pip2.JPG
          119 kB
        14. pip2.JPG
          pip2.JPG
          119 kB
        15. pipe1.JPG
          pipe1.JPG
          48 kB
        16. pipe1.JPG
          pipe1.JPG
          48 kB
        17. pipe1.JPG
          pipe1.JPG
          48 kB
        18. pipe3.JPG
          pipe3.JPG
          38 kB
        19. pipe4.JPG
          pipe4.JPG
          50 kB
        20. simple_use_plugin.png
          simple_use_plugin.png
          159 kB

          Issue Links

            Activity

            Hide
            yiyito guillermo casco added a comment -

            ok and the last one: 

            • Use a Freestyle job instead of a single Pipeline job and allow it to manage the branch checkout. Then the user can select from a pick list to choose the branch they want to build

            Is this better? is the branch checkout management UI configured through jenkins console? 

            first option you said involves docker and other stuff to configure and looks a little bit messy. Doable, but messy

            thanks budy

            Show
            yiyito guillermo casco added a comment - ok and the last one:  Use a Freestyle job instead of a single Pipeline job and allow it to manage the branch checkout. Then the user can select from a pick list to choose the branch they want to build Is this better? is the branch checkout management UI configured through jenkins console?  first option you said involves docker and other stuff to configure and looks a little bit messy. Doable, but messy thanks budy
            Hide
            markewaite Mark Waite added a comment - - edited

            guillermo casco multi-branch Pipelines do not require docker and are much less messy than a single job which switches between different branches. Refer to the simpler multi-branch Pipeline tutorial for an example of how easy it is.

            Show
            markewaite Mark Waite added a comment - - edited guillermo casco multi-branch Pipelines do not require docker and are much less messy than a single job which switches between different branches. Refer to the simpler multi-branch Pipeline tutorial for an example of how easy it is.
            Hide
            yiyito guillermo casco added a comment -

            ok will try that, thank you for for your help!

            Regards.-

            Show
            yiyito guillermo casco added a comment - ok will try that, thank you for for your help! Regards.-
            Hide
            yiyito guillermo casco added a comment -

            Is this some kind of another bug or something? I implemented multibranch pipeline as you suggsted Mark Waite and is still running master  . check images. Is there some kind of configuration I´m missing? 

             

            Show
            yiyito guillermo casco added a comment - Is this some kind of another bug or something? I implemented multibranch pipeline as you suggsted Mark Waite and is still running master  . check images. Is there some kind of configuration I´m missing?   
            Hide
            markewaite Mark Waite added a comment -

            guillermo casco be sure that your Jenkinsfile on the branch is not inadvertently specifying that it should checkout the master branch.

            Show
            markewaite Mark Waite added a comment - guillermo casco be sure that your Jenkinsfile on the branch is not inadvertently specifying that it should checkout the master branch.

              People

              • Assignee:
                klimas7 Boguslaw Klimas
                Reporter:
                yiyito guillermo casco
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: