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 2020 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
Merlin Pong
@MerlinPong
image.png
POST /api/repos/{namespace}/{name}/builds
my url should be [/api/repos/tfr/tfr-server/builds] right, but why the post request reponse is always "Not Found"
Merlin Pong
@MerlinPong
need support on edge... guys, please
Chris Pritchard
@chriscpritchard
When building the OSS version of drone, do you still need to build the drone-agent and drone-controller?
if so, do I still need to use the -tags "oss nolimit" ?
Ardian Syla
@ArdianBSyla
@ashwilliams1 thanks, but my build.sh file has a lot of commands ex. git, go, npm ... and how to execute this file to execute all these commands?
techknowlogick
@techknowlogick
@chriscpritchard OSS version doesn't support agents
ashwilliams1
@ashwilliams1
yep, OSS version has an embedded docker agent. This means you only need to install the server, and pipelines run on the same machine as the server.
dineshsalunke
@dineshsalunke
Hello All
dineshsalunke
@dineshsalunke
Can i use the docker plugins in the digital ocean pipelines ?
dineshsalunke
@dineshsalunke
what I want to do is generate a build using digitalocean pipeline, then send status message based on build status using the rocket chat plugin
Rajat Soni
@rajat-np
Hey folks.
Rajat Soni
@rajat-np
After starting drone exec runner, there is no error msg in the shell but the log file I created is empty and the pipeline says default: Pending
Samuel Alfageme
@SamuAlfageme
Hey guys, I was wondering if there's some way of running some sort of 'before_script' for a drone plugin (e.g. to apk add git) without interfering with its entrypoint
context: I'm using setuptools-scm together with plugins/drone-pypi to release a python package while getting its version from git. But as git is not installed on the plugin image, the pipeline fails
Thomas Boerger
@tboerger
@SamuAlfageme :tada: Nice to see you alive :D
Samuel Alfageme
@SamuAlfageme
@tboerger hehe alive and kickin'
Thomas Boerger
@tboerger
Plugins don't offer any commands blocks, but I'm open to accept git as a package within the plugin, mind opening a PR to the repo? ;)
Samuel Alfageme
@SamuAlfageme
Sure thing, will do! Is it also an interesting scenario to add to the docs?
Or is it better to keep them nice and simple?
Thomas Boerger
@tboerger
I would keep that simple
The plugin index will change anyway a lot hopefully soon...
Samuel Alfageme
@SamuAlfageme
:+1:
Thomas Boerger
@tboerger
@SamuAlfageme merged
Nathan Cooke
@3choBoomer

The documentation is not very clear on the difference between a pipeline trigger and a step trigger.

specifically, would the step foo ever get triggered on a pull request?

trigger:
  event:
    - push

steps:
  - name: foo
.....
    trigger:
      event:
      -  push
      - pull_request
softshipper
@softshipper
Hi all
What is the difference between Environment and Setting?
When should I use Setting and when Environment
Carl Menezes
@carl-menezes-aql
hi all, is there a way to get a human readable timestamp from "drone build ls"?
Brad Rydzewski
@bradrydzewski
@softshipper settings are for plugins only. They are used to configure plugins using documented plugin inputs

@3choBoomer no, if trigger does not evaluate to true the pipeline does not execute. If you don't mind, how would you recommend rewriting this paragraph to make it more clear?

When you push code to your repository, open a pull request, or create a tag, your source control management system automatically sends a webhook to Drone which in turn triggers pipeline execution. Use the triggers section to limit pipeline execution.

unfortunately because I am so close to the project, I often don't realize when things are unclear. Having someone else summarize in their own words is often very helpful :)

Carl Menezes
@carl-menezes-aql

hi all, is there a way to get a human readable timestamp from "drone build ls"?

specifically, I want to use the CLI to produce a basic csv output of build history and want to include a column for when the build started

I have noticed that if I used {{ .Created }}I get an integer. I know its probably the UNIX timestamp, but is there a way to get it in a human readable form?
Brad Rydzewski
@bradrydzewski
@carl-menezes-aql
drone build ls drone/hello-world --format="{{ time .Started }}"
Carl Menezes
@carl-menezes-aql
aha! thank you @bradrydzewski
image.png
@bradrydzewski : doesn't work (at least with version 1.2.1 on windows) -
Brad Rydzewski
@bradrydzewski
you might need to build from source, not sure
Carl Menezes
@carl-menezes-aql
ok will try that
Brad Rydzewski
@bradrydzewski
but it definitely works with with master
$ drone build ls drone/hello-world --format="{{ .Number }},{{ time .Started }},{{ .Status }}"
123,2020-05-08 13:51:42 -0400 EDT,success
122,2020-05-08 12:25:19 -0400 EDT,success
121,2020-05-05 14:15:15 -0400 EDT,success
120,2020-05-04 09:13:49 -0400 EDT,success
119,2020-04-28 12:01:16 -0400 EDT,success
118,2020-04-28 12:00:35 -0400 EDT,success
Carl Menezes
@carl-menezes-aql
excellent :) Thank you.
Actually...no need to build from source. User error. I just noticed I needed a space between time and .Started
image.png
softshipper
@softshipper
balugcath
@balugcath
Hi, i,m trying drone cloud but cant authenticate with GitHub, i,m get: Login Failed. Cannot verify user authenticity. can anyone help me?
Nuno Ferreira
@numiralofe

hi, this is probably answered but i can't find a clear example/answer:

how can one filter by pull request merge ?
(basically i want to only trigger the build when a PR merge happens and ignore other PR actions)

kind: pipeline
name: default
steps:

- name: build and publish  to ECR
  image: plugins/ecr
  settings:
    repo: myrepo
    registry: myrepo.dkr.ecr.eu-central-1.amazonaws.com
    region: eu-central-1
    tags:
      - api-${DRONE_SOURCE_BRANCH}-${DRONE_BUILD_NUMBER}
      - api-${DRONE_SOURCE_BRANCH}-latest
    dockerfile: Dockerfile
  when:
    event:
    - pull_request
    branch:
      - dev
Brad Rydzewski
@bradrydzewski
@numiralofe when you merge a pull request, github sends a push webhook