Jenkins already does some of that for you by running the pipeline script in
a sandbox. Certain methods/functions in the Jenkinsfile must be approved by
a Jenkins administrator.
tirsdag 14. juni 2016 08.43.00 UTC+2 skrev Eli White følgende:
>
> Agreed, you are not supposed to do any real work in
The private key is actually not password protected. I chose empty password
when I generated the private key on the server.
tirsdag 14. juni 2016 08.41.17 UTC+2 skrev Thomas Zoratto følgende:
>
> Your private keys seems to be protected by a passphrase. As you are not in
> an interactive shell the
Agreed, you are not supposed to do any real work in a flyweight node.
However, in an organization where teams' repos contain Jenkinsfiles that
they wrote, we can't guarantee the safety and correctness of those files
and their following of best practices.
We want to protect the master node aga
Your private keys seems to be protected by a passphrase. As you are not in an
interactive shell there is no tty so it fails when trying to ask for
passphrase.
> Le 14 juin 2016 à 08:20, Sverre Moe a écrit :
>
> It looks like it is trying the private key credentials from Jenkins, but
> fails.
I don't think you are supposed to do any real work in a flyweight executor.
Steps need to be within a node{} which will allocate a heavyweight
executor. I use the flyweight executors only to trigger downstream builds.
tirsdag 14. juni 2016 02.47.40 UTC+2 skrev Eli White følgende:
>
> By not runni
It looks like it is trying the private key credentials from Jenkins, but
fails. When it fails it tries the public key for the user, then finally
trying password which it cannot get.
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publ
This would create two body elements in the email, not sure how that will
affect things.
On Mon, Jun 13, 2016, 04:32 Ginga, Dick wrote:
> I am using a template for the bulk of the email (attached). The actual
> Email Default Content field contains (at the moment)
>
>
>
> $DEFAULT_CONTENT
>
>
>
>
By not running anything on master we don't have to worry about any sort of
failure related to misconfiguration of jobs, or job related failures. For
example, OOM, out of disk space, pausing when 'input' is run, etc.
If a slave goes down you have 1 machine down. If master goes down, all CI
for
(replies inline)
On Mon, 13 Jun 2016, R. Tyler Croy wrote:
> Reminder, this will be happening in about 45 minutes
issues.jenkins-ci.org is back online with JIRA 7.1.7, wheee!
The majority of the maintenance window was actually taking a full backup, once
that was completed the upgrade process
Can anyone help me to figure out to how to write a groovy script to set
roles through groovy script in role based strategy ?
I am able to do it for MatrixAuthorization
def strategy = new GlobalMatrixAuthorizationStrategy()
strategy.add(Jenkins.ADMINISTER, "test")
strategy.add(Jenkins.READ, "
Reminder, this will be happening in about 45 minutes
On Wed, 08 Jun 2016, R. Tyler Croy wrote:
> Consider this notice that there will be a scheduled maintenance window June
> 14th
> 00:00 UTC or June 13th 16:00 PDT for project infrastructure.
>
> This is a followup window to try to get JIRA upg
On non-pipeline Maven jobs, the job can be configured to trigger a build
anytime a SNAPSHOT dependency is built, using the flag: "Build whenever a
SNAPSHOT dependency is built."
Is there any way to get this same functionality from a pipeline job
configured through a Jenkinsfile?
--
You receiv
Hello,
I’m not sure one can do what you want.
Out of curiosity, what’s the use case for this ?
> Le 13 juin 2016 à 23:16, Eli White a écrit :
>
> My understanding is that Jenkinsfile execution runs as a flyweight node on
> master, but then uses heavyweight nodes on the given node label to e
My understanding is that Jenkinsfile execution runs as a flyweight node on
master, but then uses heavyweight nodes on the given node label to execute.
Per this
file: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md
Why are there two executors consumed by one Pipeline build?
In your pipeline, the *node* parameter can take an argument of which node
to run on.
See this example:
https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L100
In my job, I defined BUILD_NODE with the NodeLabel Parameter Plugin (
https://wiki.jenkins-ci.org/display/J
We follow the Jenkins configuration best practices and have no executors on
our master node and force everything to run on our agents.
We are starting to work with pipeline jobs and are worried that bad
Jenkinsfiles could cause problems on our master.
How can we force the flyweight jobs to run
How can I configure the "Nexus Artifact Uploader" plugin to use a custom
snapshot version number? I'd like to reuse the Git commit version at the
end of the Snapshot name, to make it easier to track commits to artifacts.
--
You received this message because you are subscribed to the Google Grou
Hi,
I'm looking to try and setup a post build groovy script event with my
Jenkinsfile for my multibranch job. Is this possible? I'm looking to try
and update the build display name with the svn revision number used at the
time of the build. This is the jenkinsfile script im using:
node()
{
s
Does anyone have a good way to automate the installation of Jenkins on
Kubernetes, including
all of the plugins, job configuration, etc.
I have found quite a few k8s / Jenkins manifests - but they pretty much
assume that you will mount a PV for Jenkins home, and then
configure it manually.
Please don't duplicate your question in mailing lists. See my answer in the dev
mailing list and reply here
> Le 13 juin 2016 à 17:13, Glen Millard a écrit :
>
> Hello everyone;
>
> I want to include a Docker pull of several containers using a Jenkins job.
>
> Questions:
>
> is there/are th
Hi,
Try to ssh in verbose mode and you'll know what's happening.
ssh -v ...
(The more v you put, the more verbose it will be)
> Le 13 juin 2016 à 15:21, Sverre Moe a écrit :
>
> I have already added the host to ~/.ssh/known_hosts, so using
> StrictHostKeyChecking=no is no longer necessary.
Newbie help.
For Job A which builds and promotes to Dev, there is promotion process to
QA Performance and Production.
Is there a way to create Job B which be able to deploy to all environments?
When using "Promoted Build Parameter" in Job B configuration, I must
select the Promotion proce
Hello everyone;
I want to include a Docker pull of several containers using a Jenkins job.
Questions:
1. is there/are they recommended plugins - I see a few - this one looks
like overkill -
https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Docker+Build+and+Publish+plugin
-
Hi,
I have create a parameterised Multibranch Pipeline job, defining the
parameters and their defaults in a Jenkinsfile inside the repository being
built.
The job will be built on multiple environments, with separate Jenkins
deployments. The defaults set in the Jenkinsfile are production value
Can you post the project hierarch here? where are your tests located?
Are tests running successfully from Eclipse?
On Monday, June 13, 2016 at 11:12:20 AM UTC+1, Kancharla Prasad wrote:
>
> Hi All,
>
> I am new to jenkins.
>
> In jeninks i had created a Maven project in jenkins and provided pom.
That makes absolute sense, but I just tried that and got the same error..
On 13 June 2016 at 12:42, Mark Waite wrote:
> By default, the git plugin checks out a "detached head" rather than
> checking out to a named local branch. If you add the "Additional
> Behaviours" to do a "Checkout to spe
I have already added the host to ~/.ssh/known_hosts, so
using StrictHostKeyChecking=no is no longer necessary.
What I am experiencing now is authentication problem. It does not use the
credentials with the ssh connection. Thus I receive Permission denied
(publickey,keyboard-interactive).
My cre
Indeed in my case I had disabled host key checking.
What works for me is:
sshagent(['some-id']) {
sh """
ssh -o StrictHostKeyChecking=no marmotte@marmotte "docker
create -v /var/jenkins_home --name ze-data jenkins:1.642.1 || echo 'data
container already existing?' "
Thanks a million! I'll do that
On Monday, June 13, 2016 at 10:02:16 AM UTC+2, Björn Pedersen wrote:
>
> Hi,
>
> if it is a shared workspace, then yes, it will have a race condition. Use
> one of the lock-out plugins to limit the concurrency of the job to 1, then
> the jobs will get queued instea
By default, the git plugin checks out a "detached head" rather than
checking out to a named local branch. If you add the "Additional
Behaviours" to do a "Checkout to specific local branch" and assign it the
value "**", then the plugin will attempt to checkout to a local branch
which matches the br
Thanks for the info re: In-process script approval, that worked :)
@Mark, I'm pretty sure that I need to glean info about the branch from the
current build, because this has to be passed as an argument to my build
tool. I was hoping that this could be done via an environment variable, but
this
I am using a template for the bulk of the email (attached). The actual Email
Default Content field contains (at the moment)
$DEFAULT_CONTENT
${BUILD_LOG_REGEX, regex="(?i)( FAIL:.*)", escapeHtml=true, substText="$1",
showTruncatedLines=false, escapeHtml=true}
Thanks for your help.
From: j
For the multi-branch development work I've been doing, it has been better
to avoid placing branch information inside the Jenkinsfile. The problem I
had was that most of my branches are short-lived. They exist long enough
to allow me to validate a pull request, but then they are merged to the
mast
Pipelines with Jenkinsfile runs in a sandbox and thus you need to approve
certain functions.
Manage Jenkins -> In-process Script Approval
mandag 13. juni 2016 12.32.14 UTC+2 skrev Jerry Steele følgende:
>
> Thanks for getting me started on this. If you don't mind helping me
> troubleshoot, I'll
Thanks for getting me started on this. If you don't mind helping me
troubleshoot, I'll carry on:
I think the parameterized version is the one I need, as I would like the
build tool to run with the $gitBranch argument of the new branch that has
just been created. However, when I attempt to run t
Am i missing something in my script content?
sshagent(['repository']) {
sh 'ssh -Xf bu...@repo.company.com ls -l /home/build/ '
}
When executing ssh within sshagent I am getting
Permission denied (publickey,keyboard-interactive).
The credential repository has the private key for the user buil
Hi Mathus,
Thanks a ton - that's right and worked as expected after moving outside
node.
Thanks
-Vishal
On Sunday, 12 June 2016 18:10:48 UTC+5:30, Baptiste Mathus wrote:
>
> Where did you put the `input` step call?
>
> If you put it *inside* a node {} then it's an expected behaviour. If you
>
Hi,
I'm really stuck with this, so any help would be appreciated:-(
On 9 June 2016 at 11:15, RDR wrote:
> I don't know if this helps, but...
>
> * I've gone through the config.xml file and compared it to an old backup
> that worked as expected - I can't see any differences that I can not
>
Either I am doing it wrong, or Multibranch pipeline has no way of sending
parameters to downstream builds.
Considering that each branch within a multibranch pipeline seems to be a
single Pipeline project and standard such Pipeline projects can be
parameterized.
onsdag 8. juni 2016 12.42.01 UTC+
As I am building on multiple slave nodes I get RPM artifacts from each
node. Building on 4 64bit Linux OS, I will get 4 distinct artifacts with
the same name. Using ArtifactArchiver will only archive one of those
distinct archives and overwrite the previous archived artifact. Considering
since
Hi,
if it is a shared workspace, then yes, it will have a race condition. Use
one of the lock-out plugins to limit the concurrency of the job to 1, then
the jobs will get queued instead.
Björn
Am Montag, 13. Juni 2016 09:58:44 UTC+2 schrieb Berceanu Cristian:
>
> I have a very simple build ste
I have a very simple build step set up: Pull the change from a gerrit
server and then build that change. I do pull patchset so the pull doesn't
download the whole repo. I also set up a workspace for the next task to
compile the downloaded patchset. My question is: Can this run into a race
condi
42 matches
Mail list logo