Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43942

jclouds pipeline support

    XMLWordPrintable

Details

    Description

      It would be awesome to add pipeline support for jcloud plugin. Is there a roadmap ? 

      Attachments

        Activity

          I use jcloud plugin in pipeline. What exactly do you propose?

          dubrsl Viacheslav Dubrovskyi added a comment - I use jcloud plugin in pipeline. What exactly do you propose?
          hieplq hiep lq added a comment -

          hi dubrsl how you use jcloud on pipeline?

          from document of jcloud i see

          • To run your build on the newly configured slave computer, just enable the `Restrict where this project can be run` option in the build configuration page.
          • Enter the label which you choose for the instance template in the `Label Expression` text field. This should auto-complete labels for you.

          but pipeline project don't have this option.

          hieplq hiep lq added a comment - hi dubrsl how you use jcloud on pipeline? from document of jcloud i see To run your build on the newly configured slave computer, just enable the `Restrict where this project can be run` option in the build configuration page. Enter the label which you choose for the instance template in the `Label Expression` text field. This should auto-complete labels for you. but pipeline project don't have this option.
          dubrsl Viacheslav Dubrovskyi added a comment - - edited

          > pipeline project don't have this option.
          hieplq you should use pipeline https://jenkins.io/doc/book/pipeline/ and create Jenkinsfile. Please read documentation. Good place for start https://jenkins.io/doc/book/pipeline/getting-started/
          Example Jenkinsfile:
          {{
          pipeline {
          agent 'label_from_JCloud'
          stages {
          stage('Stage 1') {
          steps

          { echo 'Hello world!' }

          }
          }
          }
          }}

          dubrsl Viacheslav Dubrovskyi added a comment - - edited > pipeline project don't have this option. hieplq you should use pipeline https://jenkins.io/doc/book/pipeline/ and create Jenkinsfile. Please read documentation. Good place for start https://jenkins.io/doc/book/pipeline/getting-started/ Example Jenkinsfile: {{ pipeline { agent 'label_from_JCloud' stages { stage('Stage 1') { steps { echo 'Hello world!' } } } } }}
          drugcrazed Patrick Rose added a comment -

          We were looking at using the feature to archive artifacts in our Openstack Swift (we might use more JCloud features in the future but that's not on our road map) but it's not possible to use BlobStorePublisher because it doesn't implement SimpleBuildStep. I think that's probably the only thing that you can't use JClouds for in Pipeline without writing a complicated Jenkinsfile?

          I'm not familiar enough with the API to be certain, but I think just marking BlobStorePublisher as implementing that interface would make it usable in pipeline without any other work being required.

          drugcrazed Patrick Rose added a comment - We were looking at using the feature to archive artifacts in our Openstack Swift (we might use more JCloud features in the future but that's not on our road map) but it's not possible to use BlobStorePublisher because it doesn't implement SimpleBuildStep . I think that's probably the only thing that you can't use JClouds for in Pipeline without writing a complicated Jenkinsfile? I'm not familiar enough with the API to be certain, but I think just marking BlobStorePublisher as implementing that interface would make it usable in pipeline without any other work being required.

          People

            felfert Fritz Elfert
            um3sh umesh moghariya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: