• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jclouds-plugin
    • None

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

          [JENKINS-43942] jclouds pipeline support

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

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

          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.

          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.

          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!' }

          }
          }
          }
          }}

          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!' } } } } }}

          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.

          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.

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

              Created:
              Updated: