[−][src]Struct jenkins_api::job::builder::JobBuilder
Helper to build a job
Implementations
impl<'a, 'b, 'c, 'd> JobBuilder<'a, 'b, 'c, 'd>
[src]
pub fn send(self) -> Result<ShortQueueItem>
[src]
Trigger the build
pub fn with_delay(self, delay_sec: u32) -> Self
[src]
Add a delay before the job will be built
pub fn remotely_with_token_and_cause(
self,
token: &'d str,
cause: Option<&'c str>
) -> Result<Self>
[src]
self,
token: &'d str,
cause: Option<&'c str>
) -> Result<Self>
Trigger the build remotely with a token and a cause
Errors
This methods will return an error if building remotely a build with parameters
pub fn with_parameters<T: Serialize>(self, parameters: &T) -> Result<Self>
[src]
Build with parameters
Supported parameters type: Boolean, Choice, Multi-line string, Password, Run, String
Unsupported parameters type: File, Credentials
Errors
If used on a Job
without parameters, sending this build will return an
Error::IllegalState
If used with invalid parameters type / value, sending this build will return an
Error::IllegalArgument
This methods will return an error if serializing parameters
fails, or if passing
parameters to a remote build.
Trait Implementations
impl<'a, 'b, 'c, 'd> Debug for JobBuilder<'a, 'b, 'c, 'd>
[src]
Auto Trait Implementations
impl<'a, 'b, 'c, 'd> !RefUnwindSafe for JobBuilder<'a, 'b, 'c, 'd>
impl<'a, 'b, 'c, 'd> Send for JobBuilder<'a, 'b, 'c, 'd>
impl<'a, 'b, 'c, 'd> Sync for JobBuilder<'a, 'b, 'c, 'd>
impl<'a, 'b, 'c, 'd> Unpin for JobBuilder<'a, 'b, 'c, 'd>
impl<'a, 'b, 'c, 'd> !UnwindSafe for JobBuilder<'a, 'b, 'c, 'd>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,