by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 20 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
Relivian
@Relivian

Hi, I have a problem triggering the build of another repository via downstream plugin. My drone file looks like this:

kind: pipeline
name: default

steps:
- name: build
  image: maven:3-openjdk-8
  commands:
  - echo "hello world"

- name: trigger
  image: plugins/downstream
  settings:
    server: http://drone.test.local
    token:
      from_secret: token
    fork: true
    repositories:
      - cicd/feat2@feature

trigger:
  branch:
  - feature

When the trigger step runs I get "time="2020-05-29T21:03:16Z" level=fatal msg="Error: unable to trigger build for cicd/feat2@feature.\n"
Why does it keep failing?

Relivian
@Relivian
Got it working. I had a typo in token settings.
dekryptic
@dekryptic
How do you typically promote builds? Do you always use the CLI or do you have a custom dashboard that calls the drone.io API?
Ryan Jaeb
@ryanjaeb
Hi. This is probably easy, but I'm not sure what to look for. I have a Docker build where an apt-get update command fails (bad DNS lookup), but the Drone step doesn't fail. Any idea why that might happen?
BTW it's the step not failing that I'm wondering about.
Ryan Jaeb
@ryanjaeb
Actually, I'm able to narrow my issue down to being Docker, not anything Drone specific. I made a bad assumption thinking Drone was swallowing the errors.
Ryan Jaeb
@ryanjaeb
Just in case anyone wanders into the same question as me, it turns out apt-get update doesn't consider failed connections to entries in sources.list to be an error. If anyone happens to know a way to make apt-get update fail on error, please tell me.
rahul_gaikwad
@rsgaikwad

Hello All,
How should write pipeline where in single step , I want to run some commands on weekly schedule (download jar) and other commands ( execute agents) run on every event (without any schedule)?

Please share your inputs or any similar example for reference.

Yang Cheng-Hao
@tico88612
Hello everyone, I have some problem about [drone/mariadb] problem.
I set about laravel Database
But Drone always return this message.
[Warning] Access denied for user 'homestead'@'172.25.0.2' (using password: NO)
How do I fix this problem?
rahul_gaikwad
@rsgaikwad

Hello All,
How should write pipeline where in single step , I want to run some commands on weekly schedule (download jar) and other commands ( execute agents) run on every event (without any schedule)?

Please share your inputs or any similar example for reference.

@bradrydzewski Can you please suggest ?

Joonas Lehtimäki
@jlehtimaki
Is there a way I can run drone-server as non root? This is quite significant requirement from my clients side, since we want to use podsecurity policies and root containers are not allowed there.
Joonas Lehtimäki
@jlehtimaki
And second question, how do you install extension?
Sam Squire
@samsquire
Anyone know why I'd get a PR_END_OF_FILE_ERROR error when connecting to HTTPS drone? Just created?
Works with HTTP. Guessing I've not configured a certificate so that's why it does that
ashwilliams1
@ashwilliams1
@samsquire the PR_END_OF_FILE_ERROR error does not come from Drone. Where are you getting this error? How did you configure SSL?
@jlehtimaki you could use Docker userns remapping. See https://docs.docker.com/engine/security/userns-remap/
Joonas Lehtimäki
@jlehtimaki
@ashwilliams1 do I need to do some fork of Drone for that with modified Dockerfile? or does Drone support that remapping?
ashwilliams1
@ashwilliams1
It is a docker / linux feature. Nothing special required from Drone
Joonas Lehtimäki
@jlehtimaki
Yes but if I'm using Drone docker image in K8S, it kinda depends on Drone :)
Sam Squire
@samsquire
My server was down while the github webhook would have fired for changes. Is there a way to trigger master?
Trigger a build based off master?
or should i just make a new commit
Clicking restart rebuilds the old build
ashwilliams1
@ashwilliams1
@jlehtimaki you could probably do something like this:
FROM drone/drone:1
RUN groupadd -r drone && useradd -r -g drone drone
USERNAME drone
ENTRYPOINT ["/bin/drone-server"]
@samsquire you can redeliver a webhook in the GitHub settings screen
Relivian
@Relivian

Hi, I am using the downstream plugin to trigger builds of feature branches in several repositories at push events.
Some of these repositories almost have the same drone file only referencing other repositories, just like this:

    kind: pipeline
    name: default

    steps:
    - name: build
      image: maven:3-openjdk-8
      commands:
      - echo "building something..."

    - name: trigger
      image: plugins/downstream
      settings:
        server: http://drone.domain.url
        token:
          from_secret: token
        fork: true
        repositories:
          - cicd/repo2@feature

    trigger:
      branch:
      - feature
      event:
      - push

The drone file in other repositories is the same except the line with the repository reference, which refers to the repository that was initially triggered.
The problem is that the repositories trigger each other even though the ones triggered by the downstream plugin were not pushed explicitly.
Is there a way to specify a trigger recognizing the potentially recursive nature of this situation?

Thomas Boerger
@tboerger
Nope, there is no builtin way to catch that.
Evan Haas
@ehaas
Question about Drone Community Edition - looking here: https://drone.io/enterprise/features/ it says Open Source supports "Single Machine, No Agents" - does that mean it can't be used to perform builds?
by "perform builds" i mean "run pipelines". or is there a way for drone-server to run them itself?
Don
@donny-dont
there is a way for drone-server to run them itself
Evan Haas
@ehaas
is that documented anywhere? I couldn't find it
i have a community edition server running, but my pipeline is in a Pending state (which is expected, because no agents are configured); but I would like to know how to configure the server itself to run the pipeline
Don
@donny-dont
i dont see it documented anywhere other than the readme
err sorry changelog
Evan Haas
@ehaas
ah ok, I'll take a look, thanks
in the Breaking
Evan Haas
@ehaas
@donny-dont that worked! Thank you.
Don
@donny-dont
:+1:
happy to help if you like drone please consider a purchase of the enterprise edition theres lots of cool features
Evan Haas
@ehaas
will do, really impressed by what i've seen so far
radziszp
@radziszp
Hello,
has anyone tried using trigger action on drone -> gitlab? Value like openedworks but labeled don't
radziszp
@radziszp
Maybe it would be better if i explain what i'm trying to achieve. So i have pipeline step triggered on pull_request. Now on every open/update pull request pipeline is triggered. I'd like to exclude actions like changing label.
Thomas Boerger
@tboerger
Changing a label should not trigger a build
radziszp
@radziszp
@tboerger but it does on gitlab :) Same as changing merge request title etc. All pipelines rerun.
ashwilliams1
@ashwilliams1
@radziszp Drone executes a pipeline for the following webhook events, and ignores all other events or actions:
  • push a commit to a branch
  • push a tag
  • open a pull request
  • merge a pull request
  • push code to an open pull request
support for additional actions and events, such as triggering pipeline on label changes, would be a new feature.
radziszp
@radziszp
@ashwilliams1 weird, maybe my converter is doing some extra stuff, so it executes pipeline on not yet supported actions. I'll take closer look. Thanks!
rahul_gaikwad
@rsgaikwad
How should write pipeline where in single step , I want to run some commands on weekly schedule (download jar) and other commands ( execute agents) run on every event (without any schedule)? Can anyone please share your inputs or any similar example for reference?